diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2013-07-19 17:47:40 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2013-07-19 17:47:40 +0400 |
| commit | 2a6520c2d367020951648379d9df7228f8d7151c (patch) | |
| tree | 9ebd5469836a8b2bf5e2320600855f1c8fcd3516 /src/pkg/runtime/malloc.goc | |
| parent | 68572644576be5f1f7121428755e7d8af5b7044c (diff) | |
| download | go-2a6520c2d367020951648379d9df7228f8d7151c.tar.xz | |
runtime: hide mheap from GC
It contains pointers to first blocks of lots of spans.
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/11416046
Diffstat (limited to 'src/pkg/runtime/malloc.goc')
| -rw-r--r-- | src/pkg/runtime/malloc.goc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/runtime/malloc.goc b/src/pkg/runtime/malloc.goc index 24ead24c41..352f93f69d 100644 --- a/src/pkg/runtime/malloc.goc +++ b/src/pkg/runtime/malloc.goc @@ -15,6 +15,8 @@ package runtime #include "race.h" #include "stack.h" +// Mark mheap as 'no pointers', it does not contain interesting pointers but occupies ~45K. +#pragma dataflag 16 MHeap runtime·mheap; int32 runtime·checking; |
