]> Cypherpunks repositories - gostls13.git/commit
runtime: align mcentral by cache line size
authorAliaksandr Valialkin <valyala@gmail.com>
Mon, 24 Apr 2017 14:26:41 +0000 (17:26 +0300)
committerIan Lance Taylor <iant@golang.org>
Wed, 26 Apr 2017 03:48:23 +0000 (03:48 +0000)
commit259d60995d735523fc25939c35847538eb0d0670
tree84e8e86be02b9eb6c498d8d065a2980eb0264560
parentc433c374b53fc6484b571a606581f3f067a6f97a
runtime: align mcentral by cache line size

This may improve perormance during concurrent access
to mheap.central array from multiple CPU cores.

Change-Id: I8f48dd2e72aa62e9c32de07ae60fe552d8642782
Reviewed-on: https://go-review.googlesource.com/41550
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/mheap.go