]> Cypherpunks repositories - gostls13.git/commit
runtime: implement Stop for AddCleanup
authorCarlos Amedee <carlos@golang.org>
Thu, 14 Nov 2024 14:56:49 +0000 (09:56 -0500)
committerGopher Robot <gobot@golang.org>
Sat, 16 Nov 2024 03:54:51 +0000 (03:54 +0000)
commit6a2fb15475b2868815bc9b76518795839793af95
treed0795882e3c4693d0381410f3ce9aee6e9d07c8c
parent0531768b30273ec8c4fe8e234ca96c471bcf5dc3
runtime: implement Stop for AddCleanup

This change adds the implementation for AddCleanup.Stop. It allows the
caller to cancel the call to execute the cleanup. Cleanup will not be
stopped if the cleanup has already been queued for execution.

For #67535

Change-Id: I494b77d344e54d772c41489d172286773c3814e5
Reviewed-on: https://go-review.googlesource.com/c/go/+/627975
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Carlos Amedee <carlos@golang.org>
src/runtime/mcleanup.go
src/runtime/mcleanup_test.go
src/runtime/mheap.go