[Vm-dev] Re: [squeak-dev] Re: New Window VM (Closures, FT2Plugin, Large Cursors)

Andreas Raab andreas.raab at gmx.de
Tue Mar 10 15:59:45 UTC 2009

Eliot Miranda wrote:
> Good point.  There isn't a straight-forward way in the normal VMs.  In 
> the Qwaq internal VMs I added the imageFormatVersion of the current VM 
> as vm parameter #41.  BTW, here is the complete list of things I've added
> 41  imageFormatVersion for the VM
> 42 nil (number of stack pages in use in Stack VM)
> 43 nil (desired number of stack pages in Stack VM)
> 44 nil (size of eden, in bytes in Stack VM)
> 45 nil (desired size of eden in Stack VM)
> 46-55 nil; reserved for VM parameters that persist in the image (such as 
> eden above)
> 56 number of process switches since startup (read-only)
> 57 number of ioProcessEvents calls since startup (read-only)
> 58 number of ForceInterruptCheck calls since startup (read-only)
> 59 number of check event calls since startup (read-only)
> There might be a way of constructing an empty closure on a null method 
> and testing if a version of the closure primitive fails, but I prefer 
> the image format parameter.  In older VMs the vm parameter primitive 
> should fail if given parameter 41.  What say the VM devs?  Can we add 
> #41 as answering the imageFormatVersion of the VM?

Sounds reasonable to me (but then I may be biased ;-)

   - Andreas

More information about the Vm-dev mailing list