1
0
mirror of https://github.com/golang/go synced 2024-09-24 23:20:12 -06:00

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
This commit is contained in:
Ian Lance Taylor 2013-03-26 14:01:12 -07:00
parent 2180506169
commit 515353a290

View 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