Commit 515353a2 authored by Ian Lance Taylor's avatar Ian Lance Taylor

pkg/runtime: ignore runtime.memlimit when allocating heap

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
parent 21805061
...@@ -318,7 +318,10 @@ runtime·mallocinit(void) ...@@ -318,7 +318,10 @@ runtime·mallocinit(void)
runtime·InitSizes(); 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 // Set up the allocation arena, a contiguous area of memory where
// allocated data will be found. The arena begins with a bitmap large // allocated data will be found. The arena begins with a bitmap large
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment