diff options
| author | Keith Randall <khr@golang.org> | 2018-04-23 07:30:32 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2018-04-30 02:41:03 +0000 |
| commit | b7f1777a709e575cb6aa03c25a976d06d36cb6a6 (patch) | |
| tree | 4620a0bfb1fdc25cca0d09f148c6b964eb7b0643 /src/runtime/os_linux.go | |
| parent | 743fd9171fe82045a2f25e6910d919322010c59a (diff) | |
| download | go-b7f1777a709e575cb6aa03c25a976d06d36cb6a6.tar.xz | |
runtime,cmd/ld: on darwin, create theads using libc
Replace thread creation with calls to the pthread
library in libc.
Update #17490
Change-Id: I1e19965c45255deb849b059231252fc6a7861d6c
Reviewed-on: https://go-review.googlesource.com/108679
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/os_linux.go')
| -rw-r--r-- | src/runtime/os_linux.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/os_linux.go b/src/runtime/os_linux.go index 265cafdf9b..a4992343b5 100644 --- a/src/runtime/os_linux.go +++ b/src/runtime/os_linux.go @@ -142,7 +142,8 @@ func clone(flags int32, stk, mp, gp, fn unsafe.Pointer) int32 // May run with m.p==nil, so write barriers are not allowed. //go:nowritebarrier -func newosproc(mp *m, stk unsafe.Pointer) { +func newosproc(mp *m) { + stk := unsafe.Pointer(mp.g0.stack.hi) /* * note: strace gets confused if we use CLONE_PTRACE here. */ |
