]> Cypherpunks repositories - gostls13.git/commitdiff
pkg/runtime: ignore runtime.memlimit when allocating heap
authorIan Lance Taylor <iant@golang.org>
Tue, 26 Mar 2013 21:01:12 +0000 (14:01 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 26 Mar 2013 21:01:12 +0000 (14:01 -0700)
For Go 1.1, stop checking the rlimit, because it broke now
that mheap is allocated using SysAlloc.  See issue 5049.

R=r
CC=golang-dev
https://golang.org/cl/7741050

src/pkg/runtime/malloc.goc

index fa28e2b738c09a6c76acff08659b6cb1a9d0f1f3..a30129ffc145ba5c005e620f2f46c650de9f97e2 100644 (file)
@@ -318,7 +318,10 @@ runtime·mallocinit(void)
 
        runtime·InitSizes();
 
-       limit = runtime·memlimit();
+       // limit = runtime·memlimit();
+       // See https://code.google.com/p/go/issues/detail?id=5049
+       // TODO(rsc): Fix after 1.1.
+       limit = 0;
 
        // Set up the allocation arena, a contiguous area of memory where
        // allocated data will be found.  The arena begins with a bitmap large