runtime: badmorestackg0 is never called on wasm #63953
Labels
arch-wasm
WebAssembly issues
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
While investigating crash stack on wasm, i found that badmorestackg0 is behind a condition that is never true.
go/src/runtime/asm_wasm.s
Lines 217 to 230 in d72f454
As you can see above, it is comparing g == R1, R1 being g.m. We should be comparing it to g0, which is stored in R2.
It is also present in 1.20 and 1.21, but I'm not sure if we need to backport this given that it is not a significant issue.
The text was updated successfully, but these errors were encountered: