[Gc] Disappearing link unregistration

Alex Rønne Petersen xtzgzorex at gmail.com
Sat May 12 08:48:04 PDT 2012


If I allocate an object A and an object B and register a disappearing
link from A to B (i.e. A is the weak reference), do I have to
explicitly unregister the disappearing link from A to B when A becomes
garbage? If so, is registering a finalizer that does this the best
approach? If not, is doing it anyway going to improve performance or
be beneficial in some way?


More information about the Gc mailing list