]> Cypherpunks repositories - gostls13.git/commit
runtime: insufficient padding in the `p` structure
authorCarlos Eduardo Seo <cseo@linux.vnet.ibm.com>
Fri, 29 Jul 2016 17:02:26 +0000 (14:02 -0300)
committerMinux Ma <minux@golang.org>
Mon, 29 Aug 2016 23:22:51 +0000 (23:22 +0000)
commitaaa6b5352420aaaf9d46848facb5854927b3130e
tree59b5924a61174735bf1a3786ff2bd6f46715b95a
parentdb1fef7b2afd12625e3edd90f879e5d05511d1d6
runtime: insufficient padding in the `p` structure

The current padding in the 'p' struct is hardcoded at 64 bytes. It should be the
cache line size. On ppc64x, the current value is only okay because sys.CacheLineSize
is wrong at 64 bytes. This change fixes that by making the padding equal to the
cache line size. It also fixes the cache line size for ppc64/ppc64le to 128 bytes.

Fixes #16477

Change-Id: Ib7ec5195685116eb11ba312a064f41920373d4a3
Reviewed-on: https://go-review.googlesource.com/25370
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Reviewed-by: Minux Ma <minux@golang.org>
Run-TryBot: Michael Munday <munday@ca.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/internal/sys/arch_ppc64.go
src/runtime/internal/sys/arch_ppc64le.go
src/runtime/runtime2.go