Skip to content

Commit d6beda8

Browse files
limeidanabner-chenc
authored andcommitted
runtime: add reference to debugPinnerV1
This is intended to be used by debuggers, to keep heap memory reachable even if it isn't referenced from anywhere else. Change-Id: I1e900e02b4fe3a188f8173cec70f8de32122489b Reviewed-on: https://go-review.googlesource.com/c/go/+/682875 Reviewed-by: abner chenc <[email protected]> Reviewed-by: Mark Freeman <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 4ab1aec commit d6beda8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/runtime/asm_loong64.s

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ nocgo:
7070
// start this M
7171
JAL runtime·mstart(SB)
7272

73-
// Prevent dead-code elimination of debugCallV2, which is
73+
// Prevent dead-code elimination of debugCallV2 and debugPinnerV1, which are
7474
// intended to be called by debuggers.
75+
MOVV $runtime·debugPinnerV1<ABIInternal>(SB), R0
7576
MOVV $runtime·debugCallV2<ABIInternal>(SB), R0
7677

7778
MOVV R0, 1(R0)

0 commit comments

Comments
 (0)