]> Cypherpunks repositories - gostls13.git/commit
runtime: add scan trace for checkfinalizers>1
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 2 Apr 2025 01:37:30 +0000 (01:37 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 20 May 2025 18:16:40 +0000 (11:16 -0700)
commiteec8dd08362dc985a91bfead02107727b4643dcc
tree2bc34bb56f56cfdf924d65afebf7ebf89d1813cb
parent89af77deef7e554dff5ca21ff2c2aaf0a2d253ac
runtime: add scan trace for checkfinalizers>1

This change dumps a scan trace (each pointer marked and where it came
from) for the partial GC cycle performed by checkfinalizers mode when
checkfinalizers>1. This is useful for quickly understanding why certain
values are reachable without having to pull out tools like viewcore.

For #72949.

Change-Id: Ic583f80e9558cdfe1c667d27a1d975008dd39a9c
Reviewed-on: https://go-review.googlesource.com/c/go/+/662038
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/mcheckmark.go
src/runtime/mgcmark.go