[Vm-dev] Any patch for InterpreterSimulator

John M McIntosh johnmci at smalltalkconsulting.com
Thu Oct 25 02:20:30 UTC 2007

 >* primitiveSetGCSemaphore: Indicates a semaphore (index) to be  
signaled whenever a garbage collection occurs.

it should have a value of zero if it's not used. Obviously in C  
that's zero by the magic of auto-initialization of that C variable,  
and so the code runs without care, but in Smalltalk it's nil and you  

I'd make a mantis report and supply a patch to initialize the value  
explicitly in the interpreter startup code initializeInterpreter: so  
that the simulator will run.

On Oct 24, 2007, at 7:09 PM, Rob Withers wrote:

> My first post on this list, and it may not be my last.  I am trying  
> to run the InterpreterSimulator adn am having issues.   Mathieu  
> Suen mentioned this list and that there may be a patch for it.   
> Does anyone know of a patch?
> My current issue is:  In postGCAction, the gcSemaphoreIndex is nil,
> which blows up in signalSemaphoreWithIndex:.  Trying to be a bit  
> more self
> sufficient, I put a halt in primitiveSetGCSemaphore and reran it,  
> but it
> never breaks, so it never seems to get set.   Full stop.
> thank you,
> Rob

John M. McIntosh <johnmci at smalltalkconsulting.com>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com

More information about the Vm-dev mailing list