[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Incorrect become forwarder for objectSize: mirror primitive (#566)

Nicolas Cellier notifications at github.com
Tue May 4 20:41:00 UTC 2021

This has been reported in pharo fork as https://github.com/pharo-project/opensmalltalk-vm/issues/179 and also affects upstream opensmalltalk-vm

| result obj |
result := OrderedCollection new.
obj := { 1. 2. 3 }.
result add: (thisContext objectSize: obj). "Should be 3"
obj become: { 'a'. 'b'. }.
result add: (thisContext objectSize: obj). "Should be 2, but is 0"
Smalltalk garbageCollect.
result add: (thisContext objectSize: obj). "Should be 2"
 "an OrderedCollection(3 0 2)"

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20210504/86a29460/attachment.html>

More information about the Vm-dev mailing list