From b7e767b022f96687ecbde61ee7efd61a711f798b Mon Sep 17 00:00:00 2001 From: Michael Anthony Knyszek Date: Wed, 10 May 2023 20:42:23 +0000 Subject: runtime: capture per-p trace state in a type More tightening up of the tracer's interface. Change-Id: I992141c7f30e5c2d5d77d1fcd6817d35bc6e5f6d Reviewed-on: https://go-review.googlesource.com/c/go/+/494191 Auto-Submit: Michael Knyszek Reviewed-by: Michael Pratt Run-TryBot: Michael Knyszek TryBot-Result: Gopher Robot --- src/runtime/runtime2.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/runtime/runtime2.go') diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index 0350052a25..314ab194e7 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -674,15 +674,7 @@ type p struct { buf [128]*mspan } - tracebuf traceBufPtr - - // traceSweep indicates the sweep events should be traced. - // This is used to defer the sweep start event until a span - // has actually been swept. - traceSweep bool - // traceSwept and traceReclaimed track the number of bytes - // swept and reclaimed by sweeping in the current sweep loop. - traceSwept, traceReclaimed uintptr + trace pTraceState palloc persistentAlloc // per-P to avoid mutex -- cgit v1.3-5-g9baa