From: Keith Randall Date: Mon, 30 Apr 2018 07:27:13 +0000 (-0700) Subject: runtime: fix newosproc darwin+arm/arm64 X-Git-Tag: go1.11beta1~616 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=eef27a8fa2fb390d65a7476e686d933d927acdf7;p=gostls13.git runtime: fix newosproc darwin+arm/arm64 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 --- diff --git a/src/runtime/os_darwin_raw.go b/src/runtime/os_darwin_raw.go index f0c49bdb04..9fc0b7ec03 100644 --- a/src/runtime/os_darwin_raw.go +++ b/src/runtime/os_darwin_raw.go @@ -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") }