1
0
mirror of https://github.com/golang/go synced 2024-11-08 01:36:12 -07:00
go/src/internal/cpu
Martin Möhrmann 7b9c2c1950 internal/cpu: add and use cpu.CacheLinePad for padding structs
Add a CacheLinePad struct type to internal/cpu that has a size of CacheLineSize.
This can be used for padding structs in order to avoid false sharing.

Updates #25203

Change-Id: Icb95ae68d3c711f5f8217140811cad1a1d5be79a
Reviewed-on: https://go-review.googlesource.com/116276
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-20 15:41:37 +00:00
..
cpu_386.go internal/cpu: add experiment to disable CPU features with GODEBUGCPU 2018-05-22 18:49:31 +00:00
cpu_amd64.go internal/cpu: add experiment to disable CPU features with GODEBUGCPU 2018-05-22 18:49:31 +00:00
cpu_amd64p32.go internal/cpu: add experiment to disable CPU features with GODEBUGCPU 2018-05-22 18:49:31 +00:00
cpu_arm64_test.go internal/cpu: add experiment to disable CPU features with GODEBUGCPU 2018-05-22 18:49:31 +00:00
cpu_arm64.go internal/cpu: remove parentheses from arm64 feature constants 2018-08-20 14:33:26 +00:00
cpu_arm.go
cpu_mips64.go
cpu_mips64le.go
cpu_mips.go
cpu_mipsle.go
cpu_no_init.go crypto, internal/cpu: fix s390x AES feature detection and update SHA implementations 2018-06-11 11:41:31 +00:00
cpu_ppc64x_test.go internal/cpu: fix test build on ppc64 2018-05-22 20:14:05 +00:00
cpu_ppc64x.go internal/cpu: add experiment to disable CPU features with GODEBUGCPU 2018-05-22 18:49:31 +00:00
cpu_s390x_test.go crypto, internal/cpu: fix s390x AES feature detection and update SHA implementations 2018-06-11 11:41:31 +00:00
cpu_s390x.go internal/cpu: make all constants for s390x feature detection typed 2018-08-20 15:13:39 +00:00
cpu_s390x.s crypto, internal/cpu: fix s390x AES feature detection and update SHA implementations 2018-06-11 11:41:31 +00:00
cpu_test.go internal/cpu: add experiment to disable CPU features with GODEBUGCPU 2018-05-22 18:49:31 +00:00
cpu_wasm.go runtime: add js/wasm architecture 2018-05-08 00:17:34 +00:00
cpu_x86_test.go internal/cpu: add experiment to disable CPU features with GODEBUGCPU 2018-05-22 18:49:31 +00:00
cpu_x86.go internal/cpu: add experiment to disable CPU features with GODEBUGCPU 2018-05-22 18:49:31 +00:00
cpu_x86.s
cpu.go internal/cpu: add and use cpu.CacheLinePad for padding structs 2018-08-20 15:41:37 +00:00
export_test.go internal/cpu: add experiment to disable CPU features with GODEBUGCPU 2018-05-22 18:49:31 +00:00