Updates:
        Cc: [email protected] [email protected] [email protected]

Comment #8 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

Given that it takes two scavenger cycles before promotion

This is not true. We start promoting everything aggressively once 25% of to-space is occupied. Which is exactly what happens if from-space was full of weakly reachable objects. At the same time promoting a lot of weakly reachable objects "confuses" heuristics: you can see that mark-sweep is caused because promotion limit was exceeded.

GC cost of DOM object was always a big pain point for us. If as Anton says there is only a handful of corner cases we can consider introducing additional weak callbacks API that would be much lighter (e.g. would not have to copy object at all and will invoke weak callbacks "in place").

Kenneth Russel (cced), was considering another approach (for some classes of objects, e.g. Image): detecting when object becomes part of the dom (and thus can participate in object grouping).

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

Reply via email to