]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove redundant save_g call in mcall for arm
authorJoel Sing <joel@sing.id.au>
Tue, 4 May 2021 18:01:52 +0000 (04:01 +1000)
committerJoel Sing <joel@sing.id.au>
Wed, 5 May 2021 09:00:06 +0000 (09:00 +0000)
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 <joel@sing.id.au>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>

src/runtime/asm_arm.s

index f468b77ee3487041b464f44b5f51f43407d846ab..e779fc8f844b00933784e66ae750c4b819b13503 100644 (file)
@@ -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