aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorDavid Crawshaw <crawshaw@golang.org>2015-02-24 11:11:56 -0500
committerDavid Crawshaw <crawshaw@golang.org>2015-02-25 20:02:13 +0000
commit85d09574fd2ed789eb5550a04eae1d261aaf4d17 (patch)
treed5e7430c078d4851128c11beb3b27282600a831e /src/runtime
parentc7e1453e3da5ca2550bb780d1cea43e5d05af3ec (diff)
downloadgo-85d09574fd2ed789eb5550a04eae1d261aaf4d17.tar.xz
runtime: fallback to 128M address space on 32bit
Available darwin/arm devices sporadically have trouble mapping 256M. I would really appreciate it if anyone could check my working on this, and make sure sure there aren't obviously bad consequences I haven't considered. Change-Id: Id1a8edae104d974fcf5f9333274f958625467f79 Reviewed-on: https://go-review.googlesource.com/5752 Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/malloc.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go
index fac5ca49ce..6a2c85aa9f 100644
--- a/src/runtime/malloc.go
+++ b/src/runtime/malloc.go
@@ -292,6 +292,7 @@ func mallocinit() {
arenaSizes := []uintptr{
512 << 20,
256 << 20,
+ 128 << 20,
}
for _, arenaSize := range arenaSizes {