]> Cypherpunks repositories - gostls13.git/commit
runtime: correctly account for allocated objects in allocfree trace
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 20 May 2024 20:18:02 +0000 (20:18 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 22 May 2024 19:18:09 +0000 (19:18 +0000)
commit197101a84a563ee8fb6ac58bb91ab2de49f0cbce
tree02e286fd21853b94910b6c8907be58fdaa968fb6
parent5ab8f90745efee77cae39f4ba9547298977fcc65
runtime: correctly account for allocated objects in allocfree trace

The current implementation doesn't handle s.freeindex at all, which
means it'll skip a whole bunch of recently-made allocations, because the
span may have not been swept yet.

Change-Id: I8c5e360f5927ffe7e9abb448b352a59875e31b02
Reviewed-on: https://go-review.googlesource.com/c/go/+/586996
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/traceallocfree.go