From 515353a290be7718783ce31987b74e8e515e6c2d Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 26 Mar 2013 14:01:12 -0700 Subject: [PATCH] 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 --- src/pkg/runtime/malloc.goc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pkg/runtime/malloc.goc b/src/pkg/runtime/malloc.goc index fa28e2b738..a30129ffc1 100644 --- a/src/pkg/runtime/malloc.goc +++ b/src/pkg/runtime/malloc.goc @@ -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