Till Schneidereit (2014-07-06T18:27:50.000Z)
domenic at domenicdenicola.com (2014-07-11T23:12:47.257Z)
On Sun, Jul 6, 2014 at 7:45 PM, Filip Pizlo <fpizlo at apple.com> wrote: > Is the main opposition to weak references just the security implications > of information revealed by GC? Has anyone quantified how much information > is leaked, or proved that this information cannot be obtained through > already exposed APIs or language features? I presume it has something to > do with detecting if anyone else has a reference to an object. > Security is one concern, but I think that Mark's proposal covers this with the "only collect weakrefs between turns" semantics. I CC'd a few people who voiced strong opposition on our dev mailing list. Posts containing arguments for their position are: - https://groups.google.com/d/msg/mozilla.dev.tech.js-engine.internals/V__5zqll3zc/zCjQrnnMtAMJ - https://groups.google.com/d/msg/mozilla.dev.tech.js-engine.internals/V__5zqll3zc/FHx26ioYyUkJ - https://groups.google.com/d/msg/mozilla.dev.tech.js-engine.internals/V__5zqll3zc/hLJiNqd8Xq8J - https://groups.google.com/d/msg/mozilla.dev.tech.js-engine.internals/V__5zqll3zc/IByxb_ZjulgJ And an argument for alternative solutions to common weakref use cases: - https://groups.google.com/d/msg/mozilla.dev.tech.js-engine.internals/V__5zqll3zc/Zweq9VEqI0cJ There's a lot more in that thread, but I think this roughly covers the main arguments against weakrefs.