aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/malloc.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-02-04 00:00:55 -0500
committerRuss Cox <rsc@golang.org>2013-02-04 00:00:55 -0500
commit472354f81e6c413508b3f2f43c0f321c4500bacd (patch)
treeb624f86c9ef2f6544e9b7ae63483e7570f1bb89d /src/pkg/runtime/malloc.h
parent6b4cf2b36781bcc3fddd8374c68dd143d12dadc1 (diff)
downloadgo-472354f81e6c413508b3f2f43c0f321c4500bacd.tar.xz
runtime/debug: add controls for garbage collector
Fixes #4090. R=golang-dev, iant, bradfitz, dsymonds CC=golang-dev https://golang.org/cl/7229070
Diffstat (limited to 'src/pkg/runtime/malloc.h')
-rw-r--r--src/pkg/runtime/malloc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/malloc.h b/src/pkg/runtime/malloc.h
index 2c34398a72..5c65f62a24 100644
--- a/src/pkg/runtime/malloc.h
+++ b/src/pkg/runtime/malloc.h
@@ -86,6 +86,7 @@ typedef struct MSpan MSpan;
typedef struct MStats MStats;
typedef struct MLink MLink;
typedef struct MTypes MTypes;
+typedef struct GCStats GCStats;
enum
{
@@ -229,7 +230,7 @@ struct MStats
uint64 buckhash_sys; // profiling bucket hash table
// Statistics about garbage collector.
- // Protected by stopping the world during GC.
+ // Protected by mheap or stopping the world during GC.
uint64 next_gc; // next GC (in heap_alloc time)
uint64 last_gc; // last GC (in absolute time)
uint64 pause_total_ns;
@@ -249,7 +250,6 @@ struct MStats
#define mstats runtime·memStats /* name shared with Go */
extern MStats mstats;
-
// Size classes. Computed and initialized by InitSizes.
//
// SizeToClass(0 <= n <= MaxSmallSize) returns the size class,