]> Cypherpunks repositories - gostls13.git/commit
runtime: annotate checkfinalizers reports with source and type info
authorMichael Anthony Knyszek <mknyszek@google.com>
Tue, 1 Apr 2025 19:38:39 +0000 (19:38 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 20 May 2025 18:13:54 +0000 (11:13 -0700)
commit913c069819b77c0cfda78806654696508baf7f32
treea2c91b6dea8214a35d5dab2c917bf6e512d404a6
parentdfebef1c0459af0a34eceb4027c9fab5824f2eab
runtime: annotate checkfinalizers reports with source and type info

This change adds a new special kind called CheckFinalizer which is used
to annotate finalizers and cleanups with extra information about where
that cleanup or finalizer came from.

For #72949.

Change-Id: I3c1ace7bd580293961b7f0ea30345a6ce956d340
Reviewed-on: https://go-review.googlesource.com/c/go/+/662135
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/gc_test.go
src/runtime/mcheckmark.go
src/runtime/mcleanup.go
src/runtime/mfinal.go
src/runtime/mheap.go
src/runtime/testdata/testprog/checkfinalizers.go