<p></p>
<p>This has been reported in pharo fork as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="818405111" data-permission-text="Title is private" data-url="https://github.com/pharo-project/opensmalltalk-vm/issues/179" data-hovercard-type="issue" data-hovercard-url="/pharo-project/opensmalltalk-vm/issues/179/hovercard" href="https://github.com/pharo-project/opensmalltalk-vm/issues/179">pharo-project#179</a> and also affects upstream opensmalltalk-vm</p>
<pre><code>| 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"
result
 "an OrderedCollection(3 0 2)"
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/566">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW3LN3MEHX7OQTAYUCDTMBLVZANCNFSM44DNGBDA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AIJPEW7WSP6P7WX5RUNMUOTTMBLVZA5CNFSM44DNGBDKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4NBT6IGA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/566",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/566",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>