]> Cypherpunks repositories - gostls13.git/commit
runtime: grow heap by 64K instead of 128K
authorDmitriy Vyukov <dvyukov@google.com>
Wed, 9 Jul 2014 13:00:54 +0000 (17:00 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Wed, 9 Jul 2014 13:00:54 +0000 (17:00 +0400)
commit0622e13b4daa6231dc0de9da6c7f45e29c0774da
treed4179c17271358658b977da449dd2a76d6c18441
parenta5f8e8f99cbac0cfecd3baa869d111bacfbaeac4
runtime: grow heap by 64K instead of 128K
When we've switched to 8K pages,
heap started to grow by 128K instead of 64K,
because it was implicitly assuming that pages are 4K.
Fix that and make the code more robust.

LGTM=khr
R=golang-codereviews, dave, khr
CC=golang-codereviews, rsc
https://golang.org/cl/106450044
src/pkg/runtime/mheap.c