go/src/sync
Carlos Amedee 954e2c0b06 sync: use runtime.AddCleanup instead of runtime.SetFinalizer
This changes the use of finalizers to the cleanup implementation in
tests.

Updates #70907

Change-Id: I7d7289999a83fa53f538698f34294f7d9651c921
Reviewed-on: https://go-review.googlesource.com/c/go/+/640735
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2025-02-14 07:29:34 -08:00
..
atomic
cond.go
cond_test.go
example_pool_test.go
example_test.go
export_test.go
hashtriemap.go sync: make HashTrieMap[any, any] the default implementation of Map 2024-11-18 20:35:42 +00:00
map.go sync: make HashTrieMap[any, any] the default implementation of Map 2024-11-18 20:35:42 +00:00
map_bench_test.go sync: add HashTrieMap to Map tests and benchmarks 2024-11-18 20:35:37 +00:00
map_reference_test.go sync: add HashTrieMap to Map tests and benchmarks 2024-11-18 20:35:37 +00:00
map_test.go sync: use runtime.AddCleanup instead of runtime.SetFinalizer 2025-02-14 07:29:34 -08:00
mutex.go internal/sync: move sync.Mutex implementation into new package 2024-11-18 19:57:35 +00:00
mutex_test.go
once.go
once_test.go
oncefunc.go
oncefunc_test.go sync: use runtime.AddCleanup instead of runtime.SetFinalizer 2025-02-14 07:29:34 -08:00
pool.go
pool_test.go sync: use runtime.AddCleanup instead of runtime.SetFinalizer 2025-02-14 07:29:34 -08:00
poolqueue.go
runtime.go internal/synctest: new package for testing concurrent code 2024-11-19 19:40:40 +00:00
runtime2.go
runtime2_lockrank.go
runtime_sema_test.go
rwmutex.go sync: document RWMutex locks cannot be upgraded / downgraded 2024-12-04 02:44:30 +00:00
rwmutex_test.go
waitgroup.go internal/synctest: new package for testing concurrent code 2024-11-19 19:40:40 +00:00
waitgroup_test.go