From 2a6520c2d367020951648379d9df7228f8d7151c Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Fri, 19 Jul 2013 17:47:40 +0400 Subject: [PATCH] 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 --- src/pkg/runtime/malloc.goc | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.48.1