From 4c9791299d418c7434bebe59a9a481b7a246e33b Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Wed, 5 May 2021 04:01:52 +1000 Subject: [PATCH] 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 --- src/runtime/asm_arm.s | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/runtime/asm_arm.s b/src/runtime/asm_arm.s index f468b77ee34..e779fc8f844 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