diff options
author | Russ Cox <rsc@golang.org> | 2014-11-18 12:07:50 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-11-18 12:07:50 -0500 |
commit | 034ade9ba71b180de226866c5b95e71cc9e6effb (patch) | |
tree | c1914a5943bed7c96b371d7329aefc1cb725b06f /src/runtime/malloc2.go | |
parent | 684c00066a8b11bfa39b02449864841025a793d7 (diff) | |
download | go-034ade9ba71b180de226866c5b95e71cc9e6effb.tar.gz |
[dev.cc] runtime: generate GOOS- and GOARCH-specific files with go generate
Eventually I'd like almost everything cmd/dist generates
to be done with 'go generate' and checked in, to simplify
the bootstrap process. The only thing cmd/dist really needs
to do is write things like the current experiment info and
the current version.
This is a first step toward that. It replaces the _NaCl etc
constants with generated ones goos_nacl, goos_darwin,
goarch_386, and so on.
LGTM=dave, austin
R=austin, dave, bradfitz
CC=golang-codereviews, iant, r
https://codereview.appspot.com/174290043
Diffstat (limited to 'src/runtime/malloc2.go')
-rw-r--r-- | src/runtime/malloc2.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/malloc2.go b/src/runtime/malloc2.go index e4bd963d3..c175c2aec 100644 --- a/src/runtime/malloc2.go +++ b/src/runtime/malloc2.go @@ -126,7 +126,7 @@ const ( // See http://golang.org/issue/5402 and http://golang.org/issue/5236. // On other 64-bit platforms, we limit the arena to 128GB, or 37 bits. // On 32-bit, we don't bother limiting anything, so we use the full 32-bit address. - _MHeapMap_TotalBits = (_64bit*_Windows)*35 + (_64bit*(1-_Windows))*37 + (1-_64bit)*32 + _MHeapMap_TotalBits = (_64bit*goos_windows)*35 + (_64bit*(1-goos_windows))*37 + (1-_64bit)*32 _MHeapMap_Bits = _MHeapMap_TotalBits - _PageShift _MaxMem = uintptr(1<<_MHeapMap_TotalBits - 1) |