mirror of
https://github.com/golang/go
synced 2024-11-06 13:36:12 -07:00
61fa4dffed
Late into CL 206879 I started nulling out a handle's function when the handle finished running. That invalidated a previous assumption that the field was immutable. Fix the assumption, and since the case of having multiple computations in flight is at least a little bit possible, try harder to avoid duplicate work. Fixes golang/go#35995. Change-Id: Ib5e3640f931f95e35748f28f5a82cf75585b305d Reviewed-on: https://go-review.googlesource.com/c/tools/+/210077 Run-TryBot: Heschi Kreinick <heschi@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> |
||
---|---|---|
.. | ||
memoize_test.go | ||
memoize.go | ||
nocopy.go |