Ok...thanks for the answers...I think I will have to go in another way. But anyway, thanks <br><br>mariano<br><br><div class="gmail_quote">On Thu, Jul 15, 2010 at 6:43 PM, Andreas Raab <span dir="ltr">&lt;<a href="mailto:andreas.raab@gmx.de">andreas.raab@gmx.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5"><br>
On 7/15/2010 5:40 AM, Mariano Martinez Peck wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi folks. I need to know the objects (actually, only how many) that are<br>
pointing to any object. So...I take an object X, and I want to know how<br>
many objects are pointing to X.<br>
<br>
The only possible I see in Squeak VM is to do a full mark over all<br>
objects in memory (or starting by the roots). This is time consuming and<br>
I even need (maybe) to do this check (to know how many objects are<br>
pointing to an object) for every single object.<br>
<br>
So...is there a faster solution for this? The only thing I can imagine<br>
is to modify the object header, maybe create a new type, and add an<br>
array with the addresses of the objects that are pointing to that<br>
object. Or maybe just a counter that I can increase or decrease ?<br>
</blockquote>
<br></div></div>
That&#39;s called &quot;reference counting&quot;. It&#39;s not supported in Squeak.<br>
<br>
Cheers,<br><font color="#888888">
  - Andreas<br>
</font></blockquote></div><br>