From: Jakub Ciolek Date: Wed, 18 Jan 2023 09:54:17 +0000 (+0100) Subject: runtime: switch AMD64's publicationBarrier to ABIInternal X-Git-Tag: go1.21rc1~1813 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=02704d515952f87bf81195859edcdc49f28af02e;p=gostls13.git runtime: switch AMD64's publicationBarrier to ABIInternal 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 --- 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