memory safety and weak references

Mark Miller erights at
Tue Sep 8 19:55:48 UTC 2015

Dave Herman wrote

> Interestingly, I wonder if the idea of only collecting weak references
> between turns is immune to such attacks, since it's not possible to
> have a bogus reference on the stack between turns, where there is
> no stack.

Sorry it has taken me more than two years to respond to this ;)

If you *actually* GC only between turns, then yes. However, I doubt this is

If you use the implementation technique shown at
so that you never observably collect during a turn, then no, it doesn't

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list