1
0
mirror of https://github.com/golang/go synced 2024-11-18 11:04:42 -07:00

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
This commit is contained in:
Dmitriy Vyukov 2013-07-19 17:47:40 +04:00
parent 6857264457
commit 2a6520c2d3

View 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;