On Fri, Nov 01, 2013 at 01:26:14PM -0700, Terrence Cole wrote:
> First, performance: this particular proposal would force us to visit
> objects that are being swept.

This is an interesting ramification that should have been obvious in
retrospect.

> Our nursery design is currently such that this is not even
> possible. This is already problematic for weak maps. We are able to
> get around this using a few hacks, but it depends on being able to
> do full mark and sweep GC's at some point. If we moved to a more
> distributed architecture like G1, this would be a severe
> limitation. I'm not even sure how concurrent GC will handle weakmaps
> efficiently.

The Java VM (where G1 was developed) supports weak refs. Any idea what is
different there or how they managed it?


Niko
_______________________________________________
dev-tech-js-engine-internals mailing list
dev-tech-js-engine-internals@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

Reply via email to