diff options
| author | Austin Clements <austin@google.com> | 2017-06-28 15:58:59 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2017-06-28 22:08:59 +0000 |
| commit | 9745e88b224d517018ba8421972a0de5dd1c231c (patch) | |
| tree | f7189a070e1945da8c2cbc2158fbb0a3c6fbb86c /src/syscall/exec_linux.go | |
| parent | 80832974ac9306f992c797f8394e44d7f63f307e (diff) | |
| download | go-9745e88b224d517018ba8421972a0de5dd1c231c.tar.xz | |
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>
Diffstat (limited to 'src/syscall/exec_linux.go')
0 files changed, 0 insertions, 0 deletions
