]> Cypherpunks repositories - gostls13.git/commit
runtime: convert exit to use pthread library on Darwin
authorKeith Randall <khr@golang.org>
Mon, 30 Apr 2018 14:50:10 +0000 (07:50 -0700)
committerKeith Randall <khr@golang.org>
Tue, 1 May 2018 00:20:55 +0000 (00:20 +0000)
commit21656d09b710799806aee182856b2a02068609bd
tree7977f4b4bb2e4b40748a6c81414a15f405e0de1d
parent6f7ec484f67b7128b4158babd48cbf47f4443f32
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>
src/runtime/asm_386.s
src/runtime/asm_amd64.s
src/runtime/os_darwin.go
src/runtime/proc.go
src/runtime/sys_darwin.go
src/runtime/sys_darwin_386.s
src/runtime/sys_darwin_amd64.s