[Vm-dev] Fwd: callbackEnter:,
callbackLeave: addGCRoot: removeGCRoot:
John M McIntosh
johnmci at smalltalkconsulting.com
Mon Mar 30 18:06:34 UTC 2009
Ok, if I get the vm-dev mailing list correct then in fact people can
see the note, since vm-dev at discuss.squeakfoundation.org (old) bounces
it back
Begin forwarded message:
> From: John M McIntosh <johnmci at smalltalkconsulting.com>
> Date: March 30, 2009 11:00:54 AM PDT (CA)
> To: squeak vm <vm-dev at discuss.squeakfoundation.org>
> Subject: callbackEnter:, callbackLeave: addGCRoot: removeGCRoot:
> Reply-To: johnmci at smalltalkconsulting.com
>
> Ok, a few years back we managed to add in the following logic from
> Andreas, however it was not exposed by sqVirtualMachine.h
>
> now do we want to remove it? Or leave in place.
>
> If this is replaced by Alien what's the magic equivalent for doing
> the callbackEnter and callbackLeave since I"m doing that in the
> Objective-C squeak proxy logic.
>
> /* New methods for proxy version 1.? */
>
>
> /* callbackEnter: Re-enter the interpreter loop for a callback.
> Arguments:
> callbackID: Pointer to a location receiving the callback ID
> used in callbackLeave
> Returns: True if successful, false otherwise */
> sqInt (*callbackEnter)(sqInt *callbackID);
>
> /* callbackLeave: Leave the interpreter from a previous callback
> Arguments:
> callbackID: The ID of the callback received from callbackEnter()
> Returns: True if succcessful, false otherwise. */
> sqInt (*callbackLeave)(sqInt callbackID);
>
> /* addGCRoot: Add a variable location to the garbage collector.
> The contents of the variable location will be updated accordingly.
> Arguments:
> varLoc: Pointer to the variable location
> Returns: True if successful, false otherwise. */
> sqInt (*addGCRoot)(sqInt *varLoc);
>
> /* removeGCRoot: Remove a variable location from the garbage
> collector.
> Arguments:
> varLoc: Pointer to the variable location
> Returns: True if successful, false otherwise.
> */
> sqInt (*removeGCRoot)(sqInt *varLoc);
>
>
> --
> =
> =
> =
> =
> =
> ======================================================================
> John M. McIntosh <johnmci at smalltalkconsulting.com>
> Corporate Smalltalk Consulting Ltd. http://
> www.smalltalkconsulting.com
> =
> =
> =
> =
> =
> ======================================================================
>
>
>
--
=
=
=
========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com>
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
=
=
=
========================================================================
More information about the Vm-dev
mailing list