[squeak-dev] Re: #recreateSpecialObjectsArray woes

Andreas Raab andreas.raab at gmx.de
Mon Apr 12 18:52:34 UTC 2010


On 4/12/2010 11:46 AM, Igor Stasenko wrote:
> Ah, that's cool.. Except that most recent SVN repository
> sqVirtualMachine.h (revision 1955) having no addGCroot: defined in
> InterpreterProxy struct.
> I am using wrong SVN repository?
> http://squeakvm.org/svn/squeak/trunk/

Err, weird. The code is in VMMaker but it seems as if SVN hasn't been 
updated. It should include this:

#if VM_PROXY_MINOR > 7
   /* New methods for proxy version 1.8 */

   /* 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);
#endif

Cheers,
   - Andreas



More information about the Squeak-dev mailing list