aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/asm_arm.s
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2021-05-05 04:01:52 +1000
committerJoel Sing <joel@sing.id.au>2021-05-05 09:00:06 +0000
commit4c9791299d418c7434bebe59a9a481b7a246e33b (patch)
tree721ccd56cbdc7e30b4401fd8411c753ce1e1ed25 /src/runtime/asm_arm.s
parent9e0facd26ecefa5a3aa5bfd9e4034fe6d4b2f64e (diff)
downloadgo-4c9791299d418c7434bebe59a9a481b7a246e33b.tar.gz
go-4c9791299d418c7434bebe59a9a481b7a246e33b.zip
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 <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>
Diffstat (limited to 'src/runtime/asm_arm.s')
-rw-r--r--src/runtime/asm_arm.s3
1 files changed, 0 insertions, 3 deletions
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