• Kirill Smelkov's avatar
    go/zodb/internal/weak: New package to handle weak references · 79e28f3c
    Kirill Smelkov authored
    We will need weak references to handle {} oid -> obj inside zodb.Connection .
    
    In Go world they often say that weak references are not needed at all.
    Please see however the next patch for detailed rationale for why weak
    references (finalizers and cooperation from Go's GC in other words) are
    _required_ in that case.
    79e28f3c
weak_test.go 2.72 KB