[Pharo-project] Cog VM binaries as per VMMaker.oscog-eem.152/r2538.

Eliot Miranda eliot.miranda at gmail.com
Sat Mar 3 17:21:53 EST 2012


Cog VM binaries as per
VMMaker.oscog-eem.152/r2538<http://www.mirandabanda.org/files/Cog/VM/VM.r2538/>
.
Fix tricky context state bug that can cause crashes in the GC.
Contextpart>runUntilErrorOrReturnFrom: may pop the last argument.
Hence if a frame is married in this state its spouse context won't have
its last argument slot initialized.  If later the frame is divorced and the
arguments are not updated the last argument slot can be left with this
uninitialized slot and ... bang.
The solution is to update arguments as well as stack contents when
divorcing.  This is good also because it removes the VM's assumption
that method arguments are read-only, and that's only enforced by the
Smalltalk bytecode compiler, not by the bytecode.
-- 
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20120303/6bfdd38d/attachment-0001.html>


More information about the Pharo-dev mailing list