]> Cypherpunks repositories - gostls13.git/commit
runtime: use rwmutex for execLock
authorAustin Clements <austin@google.com>
Wed, 28 Jun 2017 19:58:59 +0000 (15:58 -0400)
committerAustin Clements <austin@google.com>
Wed, 28 Jun 2017 22:08:59 +0000 (22:08 +0000)
commit9745e88b224d517018ba8421972a0de5dd1c231c
treef7189a070e1945da8c2cbc2158fbb0a3c6fbb86c
parent80832974ac9306f992c797f8394e44d7f63f307e
runtime: use rwmutex for execLock

Currently the execLock is a mutex, which has the unfortunate
side-effect of serializing all thread creation. This replaces it with
an rwmutex so threads can be created in parallel, but exec still
blocks thread creation.

Fixes #20738.

Change-Id: Ia8f30a92053c3d28af460b0da71176abe5fd074b
Reviewed-on: https://go-review.googlesource.com/47072
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/proc.go