aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/malloc.h
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2011-07-18 14:56:22 -0400
committerRuss Cox <rsc@golang.org>2011-07-18 14:56:22 -0400
commit27753ff10897b566b6b8086f5fa3c83b6c4c271e (patch)
tree18498f98e57f15539e5372e01185c8e976417563 /src/pkg/runtime/malloc.h
parent66d5c9b1e9c30908608469f30b0bb72cb3014600 (diff)
downloadgo-27753ff10897b566b6b8086f5fa3c83b6c4c271e.tar.xz
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
Diffstat (limited to 'src/pkg/runtime/malloc.h')
-rw-r--r--src/pkg/runtime/malloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/malloc.h b/src/pkg/runtime/malloc.h
index 2865317ef6..5bc80f4df9 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