aboutsummaryrefslogtreecommitdiff
path: root/src/unique/handle.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/unique/handle.go')
-rw-r--r--src/unique/handle.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unique/handle.go b/src/unique/handle.go
index 4d9669162f..0842ae3185 100644
--- a/src/unique/handle.go
+++ b/src/unique/handle.go
@@ -126,7 +126,7 @@ func addUniqueMap[T comparable](typ *abi.Type) *uniqueMap[T] {
cleanupFuncs = append(cleanupFuncs, func() {
// Delete all the entries whose weak references are nil and clean up
// deleted entries.
- m.Enumerate(func(key T, wp weak.Pointer[T]) bool {
+ m.All()(func(key T, wp weak.Pointer[T]) bool {
if wp.Strong() == nil {
m.CompareAndDelete(key, wp)
}