]> Cypherpunks repositories - gostls13.git/commit
runtime: make mheap statically allocated again
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 28 May 2013 18:14:47 +0000 (22:14 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Tue, 28 May 2013 18:14:47 +0000 (22:14 +0400)
commit8bbb08533dab0dcf627db0b76ba65c3fb9b1d682
treeba5ba2fd1edb5cbce11b235bd21eeadabc65f0b6
parent671814b9044bebd9f5801cf83df74acbdf31d732
runtime: make mheap statically allocated again
This depends on: 9791044: runtime: allocate page table lazily
Once page table is moved out of heap, the heap becomes small.
This removes unnecessary dereferences during heap access.
No logical changes.

R=golang-dev, khr
CC=golang-dev
https://golang.org/cl/9802043
src/pkg/runtime/malloc.goc
src/pkg/runtime/malloc.h
src/pkg/runtime/mcache.c
src/pkg/runtime/mcentral.c
src/pkg/runtime/mgc0.c
src/pkg/runtime/mheap.c
src/pkg/runtime/panic.c
src/pkg/runtime/race.c