diff options
author | Matthew Dempsky <mdempsky@google.com> | 2015-10-21 12:48:53 -0700 |
---|---|---|
committer | Matthew Dempsky <mdempsky@google.com> | 2015-10-22 00:04:52 +0000 |
commit | 58e3ae2fae7dcb22a67ba802c250ba0abf894b1d (patch) | |
tree | 457f97a4fc07daf28cf4ede90ffb75c8abd5e10b /src/runtime/os_netbsd.go | |
parent | 029c760c7be0d11563ac69fbc0ca5fd98a5cbc2b (diff) | |
download | go-58e3ae2fae7dcb22a67ba802c250ba0abf894b1d.tar.gz go-58e3ae2fae7dcb22a67ba802c250ba0abf894b1d.zip |
runtime: split plan9 and solaris's m fields into new embedded mOS type
Reduces the size of m by ~8% on linux/amd64 (1040 bytes -> 960 bytes).
There are also windows-specific fields, but they're currently
referenced in OS-independent source files (but only when
GOOS=="windows").
Change-Id: I13e1471ff585ccced1271f74209f8ed6df14c202
Reviewed-on: https://go-review.googlesource.com/16173
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/os_netbsd.go')
-rw-r--r-- | src/runtime/os_netbsd.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/os_netbsd.go b/src/runtime/os_netbsd.go index 4fa4a416bd..659ec2d65a 100644 --- a/src/runtime/os_netbsd.go +++ b/src/runtime/os_netbsd.go @@ -6,6 +6,8 @@ package runtime import "unsafe" +type mOS struct{} + //go:noescape func setitimer(mode int32, new, old *itimerval) |