]> Cypherpunks repositories - gostls13.git/commit
runtime: allocate page table lazily
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 28 May 2013 18:04:34 +0000 (22:04 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Tue, 28 May 2013 18:04:34 +0000 (22:04 +0400)
commit671814b9044bebd9f5801cf83df74acbdf31d732
treebab95311387449bea4dd43b067288ba839775719
parent081129e286fcda2c9525dd08bd90ff6883df0698
runtime: allocate page table lazily
This removes the 256MB memory allocation at startup,
which conflicts with ulimit.
Also will allow to eliminate an unnecessary memory dereference in GC,
because the page table is usually mapped at known address.
Update #5049.
Update #5236.

R=golang-dev, khr, r, khr, rsc
CC=golang-dev
https://golang.org/cl/9791044
src/pkg/runtime/malloc.goc
src/pkg/runtime/malloc.h
src/pkg/runtime/mgc0.c
src/pkg/runtime/mheap.c