aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os_solaris.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2015-10-21 18:36:05 -0700
committerMatthew Dempsky <mdempsky@google.com>2015-11-13 02:58:12 +0000
commitec9aae772c6da242fd0c1ef2d71ddb5c139d8f61 (patch)
tree1b7087961870a9f27a7dc9b5dc936438a101b4d8 /src/runtime/os_solaris.go
parentd42cc10283b611eb6799a3d46593777dc2174f34 (diff)
downloadgo-ec9aae772c6da242fd0c1ef2d71ddb5c139d8f61.tar.gz
go-ec9aae772c6da242fd0c1ef2d71ddb5c139d8f61.zip
runtime: move m's OS-specific semaphore fields into mOS
Allows removing fields that aren't relevant to a particular OS or changing their types to match the underlying OS system calls they'll be used for. Change-Id: I5cea89ee77b4e7b985bff41337e561887c3272ff Reviewed-on: https://go-review.googlesource.com/16176 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/runtime/os_solaris.go')
-rw-r--r--src/runtime/os_solaris.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/os_solaris.go b/src/runtime/os_solaris.go
index 129653ef19..9dbe38a32a 100644
--- a/src/runtime/os_solaris.go
+++ b/src/runtime/os_solaris.go
@@ -16,7 +16,8 @@ type mscratch struct {
}
type mOS struct {
- perrno *int32 // pointer to tls errno
+ waitsema uintptr // semaphore for parking on locks
+ perrno *int32 // pointer to tls errno
// these are here because they are too large to be on the stack
// of low-level NOSPLIT functions.
//LibCall libcall;