diff options
author | Keith Randall <khr@golang.org> | 2018-04-30 07:50:10 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2018-05-01 00:20:55 +0000 |
commit | 21656d09b710799806aee182856b2a02068609bd (patch) | |
tree | 7977f4b4bb2e4b40748a6c81414a15f405e0de1d /src/runtime/asm_386.s | |
parent | 6f7ec484f67b7128b4158babd48cbf47f4443f32 (diff) | |
download | go-21656d09b710799806aee182856b2a02068609bd.tar.gz go-21656d09b710799806aee182856b2a02068609bd.zip |
runtime: convert exit to use pthread library on Darwin
Now we no longer need to mess with TLS on Darwin 386/amd64, we always
rely on the pthread library to set it up. We now just use one entry
in the TLS for the G.
Return from mstart to let the pthread library clean up the OS thread.
Change-Id: Iccf58049d545515d9b1d090b161f420e40ffd244
Reviewed-on: https://go-review.googlesource.com/110215
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/asm_386.s')
-rw-r--r-- | src/runtime/asm_386.s | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/asm_386.s b/src/runtime/asm_386.s index 28d045e416..63fa17af62 100644 --- a/src/runtime/asm_386.s +++ b/src/runtime/asm_386.s @@ -228,6 +228,10 @@ needtls: // skip runtime·ldt0setup(SB) and tls test on Plan 9 in all cases JMP ok #endif +#ifdef GOOS_darwin + // skip runtime·ldt0setup(SB) on Darwin + JMP ok +#endif // set up %gs CALL runtime·ldt0setup(SB) |