]> Cypherpunks repositories - gostls13.git/commit
sync: use runtime.AddCleanup instead of runtime.SetFinalizer
authorCarlos Amedee <carlos@golang.org>
Mon, 6 Jan 2025 17:59:07 +0000 (12:59 -0500)
committerCarlos Amedee <carlos@golang.org>
Fri, 14 Feb 2025 15:29:34 +0000 (07:29 -0800)
commit954e2c0b062d21f4914f04f0eb1aa7c5197ee92c
treebfb5424254997e1c950fb20c4f7b700552b4990d
parentc8545439b596ffc88d09b9f6970fefdf69fcfc5d
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>
src/sync/map_test.go
src/sync/oncefunc_test.go
src/sync/pool_test.go