]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix newosproc darwin+arm/arm64
authorKeith Randall <khr@golang.org>
Mon, 30 Apr 2018 07:27:13 +0000 (00:27 -0700)
committerKeith Randall <khr@golang.org>
Mon, 30 Apr 2018 16:12:24 +0000 (16:12 +0000)
Missed conversion of newosproc for the parts of darwin that
weren't affected by my previous change.

Update #25181

Change-Id: I81a2935e192b6d0df358c59b7e785eb03c504c23
Reviewed-on: https://go-review.googlesource.com/110123
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/runtime/os_darwin_raw.go

index f0c49bdb0477172fdcb3ad6bfc1e03c4e8fac875..9fc0b7ec036561913fc7a8aa44ea5c6ff3aa71c6 100644 (file)
@@ -137,7 +137,8 @@ func goenvs() {
 
 // 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)
        if false {
                print("newosproc stk=", stk, " m=", mp, " g=", mp.g0, " id=", mp.id, " ostk=", &mp, "\n")
        }