From c8402cd33046e54c7e6530b458dfc21111d7ce64 Mon Sep 17 00:00:00 2001 From: Guoqi Chen Date: Mon, 4 Jul 2022 14:29:52 +0800 Subject: [PATCH] runtime: remove the fake mstart caller in systemstack on linux/loong64 The backtrace knows to stop in the system stack due to writing to the SP, so here the fake mstart caller in the system stack is no longer needed and can be removed ref. CL 288799 Change-Id: I0841e75fd515cf6a0d98abe4cffc3f63fc275e0e Reviewed-on: https://go-review.googlesource.com/c/go/+/416035 Auto-Submit: Wayne Zuo Reviewed-by: Ian Lance Taylor Reviewed-by: WANG Xuerui Reviewed-by: Cherry Mui Run-TryBot: Wayne Zuo TryBot-Result: Gopher Robot --- src/runtime/asm_loong64.s | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/runtime/asm_loong64.s b/src/runtime/asm_loong64.s index a64b0adf9c..e226bda36f 100644 --- a/src/runtime/asm_loong64.s +++ b/src/runtime/asm_loong64.s @@ -186,10 +186,6 @@ switch: MOVV R5, g JAL runtime·save_g(SB) MOVV (g_sched+gobuf_sp)(g), R19 - // make it look like mstart called systemstack on g0, to stop traceback - ADDV $-8, R19 - MOVV $runtime·mstart(SB), R6 - MOVV R6, 0(R19) MOVV R19, R3 // call target function -- 2.50.0