From: Joel Sing Date: Tue, 4 May 2021 18:01:52 +0000 (+1000) Subject: runtime: remove redundant save_g call in mcall for arm X-Git-Tag: go1.17beta1~242 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4c9791299d;p=gostls13.git runtime: remove redundant save_g call in mcall for arm The setg call a few lines earlier has already performed the same iscgo check and called save_g if necessary. Change-Id: I6e7c44cef4e0397d6001a3d5b7e334cdfbc3ce22 Reviewed-on: https://go-review.googlesource.com/c/go/+/316929 Trust: Joel Sing Reviewed-by: Cherry Zhang Run-TryBot: Cherry Zhang TryBot-Result: Go Bot --- diff --git a/src/runtime/asm_arm.s b/src/runtime/asm_arm.s index f468b77ee3..e779fc8f84 100644 --- a/src/runtime/asm_arm.s +++ b/src/runtime/asm_arm.s @@ -252,9 +252,6 @@ TEXT runtime·mcall(SB),NOSPLIT|NOFRAME,$0-4 CMP g, R1 B.NE 2(PC) B runtime·badmcall(SB) - MOVB runtime·iscgo(SB), R11 - CMP $0, R11 - BL.NE runtime·save_g(SB) MOVW fn+0(FP), R0 MOVW (g_sched+gobuf_sp)(g), R13 SUB $8, R13