diff options
| author | Mauri de Souza Meneguzzo <mauri870@gmail.com> | 2023-11-05 16:48:15 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-11-05 19:03:55 +0000 |
| commit | 4cd201b14b6216e72ffa175747c20d1191e5eb57 (patch) | |
| tree | 35bc6f01509b7e2fb9614c97d565d01090f27418 /src | |
| parent | d72f4542fea6c2724a253a8322bc8aeed637021e (diff) | |
| download | go-4cd201b14b6216e72ffa175747c20d1191e5eb57.tar.xz | |
runtime: fix badmorestackg0 never called on wasm
Previously, badmorestackg0 was never called since it was behind a g ==
R1 check, R1 holding g.m. This is clearly wrong, since we want to check
if g == g0. Fixed by using R2 that holds the value of g0.
Fixes #63953
Change-Id: I1e2a1c3be7ad9e7ae8dbf706ef6783e664a44764
GitHub-Last-Rev: b3e92cf28603ef6f6fafc9f9b724b84253a4355c
GitHub-Pull-Request: golang/go#63954
Reviewed-on: https://go-review.googlesource.com/c/go/+/539840
Reviewed-by: Austin Clements <austin@google.com>
Auto-Submit: Austin Clements <austin@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/runtime/asm_wasm.s | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/asm_wasm.s b/src/runtime/asm_wasm.s index 9cd8b5a99f..a96115b02c 100644 --- a/src/runtime/asm_wasm.s +++ b/src/runtime/asm_wasm.s @@ -223,7 +223,7 @@ TEXT runtime·morestack(SB), NOSPLIT, $0-0 // Cannot grow scheduler stack (m->g0). Get g - Get R1 + Get R2 I64Eq If CALLNORESUME runtime·badmorestackg0(SB) |
