Thinking a bit more about it: On Thu, Oct 29, 2009 at 3:56 PM, Christian Plesner Hansen <[email protected]> wrote: > If we extend this with another phase it should solve the problem: > > - mark everything reachable from roots > - remember which standard weak handles hold unmarked objects > - mark those objects > - remember which really weak handles hold unmarked objects > - finish gc > - execute weak and really-weak callbacks
Just to recap. After normal marking which finds strongly reachable objects, you suggest to do another mark to find objects reachable via weak handles only. However, how we tell those objects apart? I might misunderstand something, but otherwise we won't be able to collect objects only achievable from weak handles, correct? One solution is to have two separate markers (one for strongly reachable and another for only weakly reachable). But it more and more concerns me how complicated things become. yours, anton. --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
