From 4608feb18b515ef7e01b906913b10bbca9d6b08a Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 28 Jan 2011 15:03:26 -0500 Subject: runtime: simpler heap map, memory allocation The old heap maps used a multilevel table, but that was overkill: there are only 1M entries on a 32-bit machine and we can arrange to use a dense address range on a 64-bit machine. The heap map is in bss. The assumption is that if we don't touch the pages they won't be mapped in. Also moved some duplicated memory allocation code out of the OS-specific files. R=r CC=golang-dev https://golang.org/cl/4118042 --- src/pkg/runtime/debug.go | 1 - 1 file changed, 1 deletion(-) (limited to 'src/pkg/runtime/debug.go') diff --git a/src/pkg/runtime/debug.go b/src/pkg/runtime/debug.go index cf30374f09..d09db1be6a 100644 --- a/src/pkg/runtime/debug.go +++ b/src/pkg/runtime/debug.go @@ -57,7 +57,6 @@ type MemStatsType struct { MSpanSys uint64 MCacheInuse uint64 // mcache structures MCacheSys uint64 - MHeapMapSys uint64 // heap map BuckHashSys uint64 // profiling bucket hash table // Garbage collector statistics. -- cgit v1.3