On 09/28/2018 02:53 PM, Henrik Johansson wrote:
> How is storing unintptrs in a map different from say java.util.WeakHashMap?
> The data pointed to by the uintptrs can at any given time have been
> reclaimed by the GC much the same as weak references in Java.
> 
> I am not saying you are using it the same way as one would normally use
> weak references in other languages.

As I said ... I have no experience with java.util.WeakHashMap and that's
not where I have the inspiration from. But I have experience with using
weak references with other garbage collectors to avoid leaks due to
cycles - and that's not what I'm doing here.

/Peter

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to