<div dir="ltr">Hi,<div><br></div><div>in Pharo and in Squeak, if you try to print:</div><div><br></div><div>Point allInstances size.</div><div><br></div><div>several times, you will get fastly growing number of Point instances in most cases. But when you do:</div><div><br></div><div><font face="monospace, monospace">Smalltalk garbageCollect. Point allInstances size.</font><br></div><br>The number of instances is quite stable.<div><br></div><div>I realized that about every 5 milliseconds two new Point instances are created and not collected in reasonable time. I tried to find what points to them and I realized that nothing. That two instances contain display size so it was easy to find the place where these points are created. In Pharo it is in</div><div><br></div><div><font face="monospace, monospace">MorphicUIManager>>#checkForNewDisplaySize</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>"Check whether the screen size has changed and if so take appropriate actions"</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>Display extent = DisplayScreen actualScreenSize ifTrue: [^ Display].</font></div><div><font face="monospace, monospace"><span class="gmail-Apple-tab-span" style="white-space:pre">    </span>DisplayScreen startUp.</font></div><div><font face="monospace, monospace"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>World restoreMorphicDisplay.</font></div><div><br></div><div>As you can see in the code, the two point instances are only very temporary objects. And with some experiments I realized that that behavior is not Point specific (eg. some problem with the @ primitive). Because if you replace the code of the method with only Object basicNew, the growth of Object instances is similar. See the attached script.</div><div><br></div><div>pharo-ui Pharo st <a href="http://script2.st">script2.st</a><br></div><div><br></div><div>Cheers,<br></div><div>-- Pavel</div><div><br></div><div><br></div><div><br></div></div>