From: Dmitriy Vyukov Date: Fri, 19 Jul 2013 13:47:40 +0000 (+0400) Subject: runtime: hide mheap from GC X-Git-Tag: go1.2rc2~996 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2a6520c2d367020951648379d9df7228f8d7151c;p=gostls13.git 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 --- 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;