mirror of
https://github.com/golang/go
synced 2024-11-24 12:30:14 -07:00
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 <khr@golang.org> Run-TryBot: Jakub Ciolek <jakub@ciolek.dev> Reviewed-by: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
7f9ee2ba5b
commit
02704d5159
@ -762,7 +762,7 @@ again:
|
||||
RET
|
||||
|
||||
|
||||
TEXT ·publicationBarrier(SB),NOSPLIT,$0-0
|
||||
TEXT ·publicationBarrier<ABIInternal>(SB),NOSPLIT,$0-0
|
||||
// Stores are already ordered on x86, so this is just a
|
||||
// compile barrier.
|
||||
RET
|
||||
|
Loading…
Reference in New Issue
Block a user