mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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 <mdempsky@google.com> Reviewed-by: David Crawshaw <crawshaw@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
756ea30eb0
commit
a4b833940d
2 changed files with 1 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ package runtime
|
||||||
import "unsafe"
|
import "unsafe"
|
||||||
|
|
||||||
type mOS struct {
|
type mOS struct {
|
||||||
|
machport uint32 // return address for mach ipc
|
||||||
waitsema uint32 // semaphore for parking on locks
|
waitsema uint32 // semaphore for parking on locks
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -309,7 +309,6 @@ type m struct {
|
||||||
park note
|
park note
|
||||||
alllink *m // on allm
|
alllink *m // on allm
|
||||||
schedlink muintptr
|
schedlink muintptr
|
||||||
machport uint32 // return address for mach ipc (os x)
|
|
||||||
mcache *mcache
|
mcache *mcache
|
||||||
lockedg *g
|
lockedg *g
|
||||||
createstack [32]uintptr // stack that created this thread.
|
createstack [32]uintptr // stack that created this thread.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue