]> Cypherpunks repositories - gostls13.git/commit
runtime: split plan9 and solaris's m fields into new embedded mOS type
authorMatthew Dempsky <mdempsky@google.com>
Wed, 21 Oct 2015 19:48:53 +0000 (12:48 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 22 Oct 2015 00:04:52 +0000 (00:04 +0000)
commit58e3ae2fae7dcb22a67ba802c250ba0abf894b1d
tree457f97a4fc07daf28cf4ede90ffb75c8abd5e10b
parent029c760c7be0d11563ac69fbc0ca5fd98a5cbc2b
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>
14 files changed:
src/runtime/os_darwin.go
src/runtime/os_dragonfly.go
src/runtime/os_freebsd.go
src/runtime/os_linux.go
src/runtime/os_nacl.go
src/runtime/os_netbsd.go
src/runtime/os_openbsd.go
src/runtime/os_plan9.go
src/runtime/os_solaris.go
src/runtime/os_windows.go
src/runtime/runtime2.go
src/runtime/sys_plan9_386.s
src/runtime/sys_plan9_amd64.s
src/runtime/sys_solaris_amd64.s