[Vm-dev] New spur crash detected

Denis Kudriashov dionisiydk at gmail.com
Mon Feb 8 17:43:54 UTC 2016


I found reproducible problem with forwardBecome. It exists on Pharo and
Squeak. For Pharo we get issue 17536

Try to execute following script:

obj1 := 20 at 10.
obj2 := 50 at 30.

weak := WeakValueAssociation new.
weak key: obj1..

obj1 becomeForward: obj2.
Smalltalk garbageCollect.
weak key class. "-> SmallInteger. If you try to print 'weak key' image will

Lines with become and garbage collection should be executed together.
Instead anything is working correctly. So it is somehow related to stack

Interesting that WeakArray is working correctly. Try script with

weak := WeakArray new: 1.
weak at: 1 put: obj1.

Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20160208/da54a5e7/attachment.htm

More information about the Vm-dev mailing list