From 02704d515952f87bf81195859edcdc49f28af02e Mon Sep 17 00:00:00 2001 From: Jakub Ciolek Date: Wed, 18 Jan 2023 10:54:17 +0100 Subject: [PATCH] runtime: switch AMD64's publicationBarrier to ABIInternal MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Shrinks a few runtime functions: runtime runtime.mallocgc 2127 -> 2117 (-0.47%) runtime.(*mheap).initSpan 652 -> 639 (-1.99%) runtime.(*mspan).userArenaNextFree 825 -> 808 (-2.06%) file before after Δ % runtime.s 512473 512414 -59 -0.012% total 20843331 20843272 -59 -0.000% Change-Id: Ifaca7abb6db3467b73945fac71496dd7527e6863 Reviewed-on: https://go-review.googlesource.com/c/go/+/462296 Auto-Submit: Keith Randall Run-TryBot: Jakub Ciolek Reviewed-by: Matthew Dempsky TryBot-Result: Gopher Robot Run-TryBot: Keith Randall Reviewed-by: Keith Randall Reviewed-by: Keith Randall --- 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 5d163da132..0e72b540be 100644 --- a/src/runtime/asm_amd64.s +++ b/src/runtime/asm_amd64.s @@ -762,7 +762,7 @@ again: RET -TEXT ·publicationBarrier(SB),NOSPLIT,$0-0 +TEXT ·publicationBarrier(SB),NOSPLIT,$0-0 // Stores are already ordered on x86, so this is just a // compile barrier. RET -- 2.48.1