summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/mem.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/mem.go')
-rw-r--r--src/pkg/runtime/mem.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/runtime/mem.go b/src/pkg/runtime/mem.go
index dc735e4a6..fa308b5d9 100644
--- a/src/pkg/runtime/mem.go
+++ b/src/pkg/runtime/mem.go
@@ -60,9 +60,8 @@ type MemStats struct {
var sizeof_C_MStats uintptr // filled in by malloc.goc
-var memStats MemStats
-
func init() {
+ var memStats MemStats
if sizeof_C_MStats != unsafe.Sizeof(memStats) {
println(sizeof_C_MStats, unsafe.Sizeof(memStats))
panic("MStats vs MemStatsType size mismatch")