From 27753ff10897b566b6b8086f5fa3c83b6c4c271e Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Mon, 18 Jul 2011 14:56:22 -0400 Subject: [PATCH] runtime: add per-M caches for MemStats Avoid touching centralized state during memory manager operations. R=mirtchovski CC=golang-dev, rsc https://golang.org/cl/4766042 --- src/pkg/runtime/malloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/runtime/malloc.h b/src/pkg/runtime/malloc.h index 2865317ef65..5bc80f4df95 100644 --- a/src/pkg/runtime/malloc.h +++ b/src/pkg/runtime/malloc.h @@ -268,7 +268,7 @@ struct MCache uint64 size; int64 local_cachealloc; // bytes allocated (or freed) from cache since last lock of heap int64 local_objects; // objects allocated (or freed) from cache since last lock of heap - int64 local_alloc; // bytes allocated and still in use since last lock of heap + int64 local_alloc; // bytes allocated (or freed) since last lock of heap int64 local_total_alloc; // bytes allocated (even if freed) since last lock of heap int64 local_nmalloc; // number of mallocs since last lock of heap int64 local_nfree; // number of frees since last lock of heap