From: Ian Lance Taylor Date: Tue, 26 Mar 2013 21:01:12 +0000 (-0700) Subject: pkg/runtime: ignore runtime.memlimit when allocating heap X-Git-Tag: go1.1rc2~319 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=515353a290be7718783ce31987b74e8e515e6c2d;p=gostls13.git 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 --- 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