Skip to content

Commit

Permalink
runtime: fix newosproc darwin+arm/arm64
Browse files Browse the repository at this point in the history
Missed conversion of newosproc for the parts of darwin that
weren't affected by my previous change.

Update golang#25181

Change-Id: I81a2935e192b6d0df358c59b7e785eb03c504c23
Reviewed-on: https://go-review.googlesource.com/110123
Reviewed-by: Josh Bleecher Snyder <[email protected]>
  • Loading branch information
randall77 committed Apr 30, 2018
1 parent 0cdf2ec commit eef27a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/os_darwin_raw.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit eef27a8

Please sign in to comment.