diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2013-05-28 22:14:47 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2013-05-28 22:14:47 +0400 |
| commit | 8bbb08533dab0dcf627db0b76ba65c3fb9b1d682 (patch) | |
| tree | ba5ba2fd1edb5cbce11b235bd21eeadabc65f0b6 /src/pkg/runtime/malloc.h | |
| parent | 671814b9044bebd9f5801cf83df74acbdf31d732 (diff) | |
| download | go-8bbb08533dab0dcf627db0b76ba65c3fb9b1d682.tar.xz | |
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
Diffstat (limited to 'src/pkg/runtime/malloc.h')
| -rw-r--r-- | src/pkg/runtime/malloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/malloc.h b/src/pkg/runtime/malloc.h index 2131a7e51c..c668183c96 100644 --- a/src/pkg/runtime/malloc.h +++ b/src/pkg/runtime/malloc.h @@ -433,7 +433,7 @@ struct MHeap FixAlloc spanalloc; // allocator for Span* FixAlloc cachealloc; // allocator for MCache* }; -extern MHeap *runtime·mheap; +extern MHeap runtime·mheap; void runtime·MHeap_Init(MHeap *h, void *(*allocator)(uintptr)); MSpan* runtime·MHeap_Alloc(MHeap *h, uintptr npage, int32 sizeclass, int32 acct, int32 zeroed); |
