]> Cypherpunks repositories - gostls13.git/commit
runtime: use private futexes on Linux
authorIan Lance Taylor <iant@golang.org>
Mon, 27 Nov 2017 23:40:28 +0000 (15:40 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 14 Feb 2018 17:37:26 +0000 (17:37 +0000)
commit07751f4b582d17289dc19511e2f45d48021f827d
treec3f83002fed064981bd82ab18fbca03ab7279177
parentebd4950e3b52dda243baf8330b5cac49125a4a9a
runtime: use private futexes on Linux

By default futexes are permitted in shared memory regions, which
requires the kernel to translate the memory address. Since our futexes
are never in shared memory, set FUTEX_PRIVATE_FLAG, which makes futex
operations slightly more efficient.

Change-Id: I2a82365ed27d5cd8d53c5382ebaca1a720a80952
Reviewed-on: https://go-review.googlesource.com/80144
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/runtime/os_linux.go