From: Matthew Dempsky Date: Mon, 22 Feb 2016 19:32:56 +0000 (-0800) Subject: runtime: move machport into darwin's mOS X-Git-Tag: go1.7beta1~1778 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a4b833940da77449afd95dc95f8596bae4fa1621;p=gostls13.git runtime: move machport into darwin's mOS It's not needed on other OSes. Change-Id: Ia6b13510585392a7062374806527d33876beba2a Reviewed-on: https://go-review.googlesource.com/19818 Run-TryBot: Matthew Dempsky Reviewed-by: David Crawshaw Reviewed-by: Ian Lance Taylor TryBot-Result: Gobot Gobot --- diff --git a/src/runtime/os_darwin.go b/src/runtime/os_darwin.go index b8257768ac..78557759cc 100644 --- a/src/runtime/os_darwin.go +++ b/src/runtime/os_darwin.go @@ -7,6 +7,7 @@ package runtime import "unsafe" type mOS struct { + machport uint32 // return address for mach ipc waitsema uint32 // semaphore for parking on locks } diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index 379fe2678b..5bc5fca7f0 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -309,7 +309,6 @@ type m struct { park note alllink *m // on allm schedlink muintptr - machport uint32 // return address for mach ipc (os x) mcache *mcache lockedg *g createstack [32]uintptr // stack that created this thread.