]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: move machport into darwin's mOS
authorMatthew Dempsky <mdempsky@google.com>
Mon, 22 Feb 2016 19:32:56 +0000 (11:32 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 22 Feb 2016 21:15:50 +0000 (21:15 +0000)
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>

src/runtime/os_darwin.go
src/runtime/runtime2.go

index b8257768ac3488f0e576d463f5455aebac15e672..78557759ccb57220f99f32f4302793e0fad55065 100644 (file)
@@ -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
 }
 
index 379fe2678b3c7e85c8e419384dee7e5f3c4c64f6..5bc5fca7f0dd2be822cc98d3ab05788f83f1e422 100644 (file)
@@ -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.