mirror of
https://github.com/golang/go
synced 2024-11-24 15:00:14 -07:00
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
This commit is contained in:
parent
66d5c9b1e9
commit
27753ff108
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user