]> Cypherpunks repositories - gostls13.git/commit
runtime: use internal/cpu variables in assembler code
authorMartin Möhrmann <moehrmann@google.com>
Sat, 28 Jul 2018 08:56:48 +0000 (10:56 +0200)
committerMartin Möhrmann <moehrmann@google.com>
Fri, 24 Aug 2018 07:29:52 +0000 (07:29 +0000)
commitc15c04d9e85a6a2c46ae57cb830192e0eee276dc
tree83dd5c15182196d11597cfad6823987138297c70
parentd8cf1514cadb512de6972e760ccef76452e3a67c
runtime: use internal/cpu variables in assembler code

Using internal/cpu variables has the benefit of avoiding false sharing
(as those are padded) and allows memory and cache usage for these variables
to be shared by multiple packages.

Change-Id: I2bf68d03091bf52b466cf689230d5d25d5950037
Reviewed-on: https://go-review.googlesource.com/126599
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/asm_386.s
src/runtime/cpuflags.go [new file with mode: 0644]
src/runtime/cpuflags_amd64.go
src/runtime/memclr_386.s
src/runtime/memclr_amd64.s
src/runtime/memmove_386.s
src/runtime/memmove_amd64.s
src/runtime/proc.go
src/runtime/runtime2.go