From d8306ee1f9a3221b2a70663a3d127d72c17df05e Mon Sep 17 00:00:00 2001 From: Michael Anthony Knyszek Date: Fri, 2 Apr 2021 20:46:35 +0000 Subject: [PATCH] runtime: make reflectcall ABI0 on amd64 reflectcall expects the ABI0 calling convention, but it's marked as ABIInternal. When it gets called this way, naturally it doesn't work very well. For #40724. Change-Id: Ic76237420cd8c72f5df1c1ac7972ad6f989f8402 Reviewed-on: https://go-review.googlesource.com/c/go/+/306931 Trust: Michael Knyszek Run-TryBot: Michael Knyszek TryBot-Result: Go Bot Reviewed-by: Cherry Zhang --- src/runtime/asm_amd64.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/asm_amd64.s b/src/runtime/asm_amd64.s index dbe7f7f381..c245fce7ef 100644 --- a/src/runtime/asm_amd64.s +++ b/src/runtime/asm_amd64.s @@ -550,7 +550,7 @@ TEXT ·unspillArgs(SB),NOSPLIT,$0-0 JMP AX // Note: can't just "JMP NAME(SB)" - bad inlining results. -TEXT ·reflectcall(SB), NOSPLIT, $0-48 +TEXT ·reflectcall(SB), NOSPLIT, $0-48 MOVLQZX frameSize+32(FP), CX DISPATCH(runtime·call16, 16) DISPATCH(runtime·call32, 32)