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.
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Peter Mogensen
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Francis
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... keith . randall
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Peter Mogensen
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Peter Mogensen
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Keith Randall
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Henrik Johansson
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Peter Mogensen
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Peter Mogensen
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Henrik Johansson
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Peter Mogensen
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Jan Mercl
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Henrik Johansson
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Henrik Johansson
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Dan Kortschak
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Dan Kortschak
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Peter Mogensen
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Peter Mogensen
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Peter Mogensen
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Peter Mogensen
- Re: [go-nuts] Huge map[string]*Object and GC where *Objec... Tamás Gulácsi