]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: hide mheap from GC
authorDmitriy Vyukov <dvyukov@google.com>
Fri, 19 Jul 2013 13:47:40 +0000 (17:47 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Fri, 19 Jul 2013 13:47:40 +0000 (17:47 +0400)
It contains pointers to first blocks of lots of spans.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/11416046

src/pkg/runtime/malloc.goc

index 24ead24c41898eecef918b1fff7372ed9a2bf461..352f93f69d45ec0d18ea092adb00e195feea7f6b 100644 (file)
@@ -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;