From 5f674f64e4e3f79adf45d301bcbc16a8a3a82b1d Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Mon, 7 Aug 2023 18:11:17 -0400 Subject: Revert "runtime: drop stack-allocated pcvalueCaches" This reverts CL 515277 Change-Id: Ie10378eed4993cb69f4a9b43a38af32b9d743155 Reviewed-on: https://go-review.googlesource.com/c/go/+/516855 Run-TryBot: Austin Clements Reviewed-by: Matthew Dempsky TryBot-Result: Gopher Robot Auto-Submit: Austin Clements Reviewed-by: Michael Knyszek --- src/runtime/stack.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/runtime/stack.go') diff --git a/src/runtime/stack.go b/src/runtime/stack.go index 61cd0a0fdd..903b096f08 100644 --- a/src/runtime/stack.go +++ b/src/runtime/stack.go @@ -555,6 +555,7 @@ var ptrnames = []string{ type adjustinfo struct { old stack delta uintptr // ptr distance from old to new stack (newbase - oldbase) + cache pcvalueCache // sghi is the highest sudog.elem on the stack. sghi uintptr @@ -675,7 +676,7 @@ func adjustframe(frame *stkframe, adjinfo *adjustinfo) { adjustpointer(adjinfo, unsafe.Pointer(frame.varp)) } - locals, args, objs := frame.getStackMap(true) + locals, args, objs := frame.getStackMap(&adjinfo.cache, true) // Adjust local variables if stack frame has been allocated. if locals.n > 0 { -- cgit v1.3