diff options
Diffstat (limited to 'src/runtime/malloc.h')
| -rw-r--r-- | src/runtime/malloc.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/runtime/malloc.h b/src/runtime/malloc.h index b90f1baf29..d1930756a2 100644 --- a/src/runtime/malloc.h +++ b/src/runtime/malloc.h @@ -273,7 +273,8 @@ struct MStats bool debuggc; // Statistics about allocation size classes. - struct { + + struct MStatsBySize { uint32 size; uint64 nmalloc; uint64 nfree; @@ -282,6 +283,7 @@ struct MStats uint64 tinyallocs; // number of tiny allocations that didn't cause actual allocation; not exported to Go directly }; + #define mstats runtime·memstats extern MStats mstats; void runtime·updatememstats(GCStats *stats); @@ -489,7 +491,7 @@ struct MHeap // the padding makes sure that the MCentrals are // spaced CacheLineSize bytes apart, so that each MCentral.lock // gets its own cache line. - struct { + struct MHeapCentral { MCentral mcentral; byte pad[CacheLineSize]; } central[NumSizeClasses]; |
