mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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 <chenguoqi@loongson.cn> Reviewed-by: Mark Freeman <mark@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
4ab1aec007
commit
d6beda863e
1 changed files with 2 additions and 1 deletions
|
|
@ -70,8 +70,9 @@ nocgo:
|
||||||
// start this M
|
// start this M
|
||||||
JAL runtime·mstart(SB)
|
JAL runtime·mstart(SB)
|
||||||
|
|
||||||
// Prevent dead-code elimination of debugCallV2, which is
|
// Prevent dead-code elimination of debugCallV2 and debugPinnerV1, which are
|
||||||
// intended to be called by debuggers.
|
// intended to be called by debuggers.
|
||||||
|
MOVV $runtime·debugPinnerV1<ABIInternal>(SB), R0
|
||||||
MOVV $runtime·debugCallV2<ABIInternal>(SB), R0
|
MOVV $runtime·debugCallV2<ABIInternal>(SB), R0
|
||||||
|
|
||||||
MOVV R0, 1(R0)
|
MOVV R0, 1(R0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue