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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
42 messages Options
123
Reply | Threaded
Open this post in threaded view
|

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

Andreas.Raab
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 ;-)

Cheers,
   - Andreas

Reply | Threaded
Open this post in threaded view
|

[squeak-dev] re: testing for VM closure support (was "New Window VM")

ccrraaiigg
In reply to this post by Eliot Miranda-2

Hi Eliot--

 > 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?

      Sure.


-C

--
Craig Latta
www.netjam.org
next show: 2009-03-13 (www.thishere.org)



123