Comment #5 on issue 2077 by [email protected]: The scavenger GC does not collect independent DOM objects
http://code.google.com/p/v8/issues/detail?id=2077

vegorov:
One GC is required to discover them and if weak callbacks will not resurrect them they will be reclaimed by the next GC. This is why weakly reachable objects are copied around (and promoted) during scavenge. Also once weakly reachable object was promoted next scavenge will not be able to reclaim it and full collection will be required.

Thanks! But even in that case, the object will be reclaimed by the _second_ scavenger GC. The first scavenger GC fires weakNodeCallback(), weakNodeCallback() disposes the object, and then the second scavenger GC reclaims the object. Given that it takes two scavenger cycles before promotion, I would guess that the object should be reclaimed by the second scavenger GC.


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to