]> Cypherpunks repositories - gostls13.git/commit
runtime: add runtime.debugPinnerV1
authorAlessandro Arzilli <alessandro.arzilli@gmail.com>
Wed, 24 Jan 2024 18:02:32 +0000 (19:02 +0100)
committerKeith Randall <khr@golang.org>
Sat, 11 May 2024 20:38:24 +0000 (20:38 +0000)
commit7f9edb42259114020c67eb51643e43cf5a2cf9a7
tree3cca83f699264cbb26aab9bc7496ec2ea469d4b7
parent74a49188d300076d6fc6747ea7678d327c5645a1
runtime: add runtime.debugPinnerV1

Adds runtime.debugPinnerV1 which returns a runtime.Pinner object that
pins itself. This is intended to be used by debuggers in conjunction
with runtime.debugCall to keep heap memory reachable even if it isn't
referenced from anywhere else.

Change-Id: I508ee6a7b103e68df83c96f2e04a0599200300dc
Reviewed-on: https://go-review.googlesource.com/c/go/+/558276
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/asm_amd64.s
src/runtime/asm_arm64.s
src/runtime/asm_ppc64x.s
src/runtime/debug.go