diff options
| author | Russ Cox <rsc@golang.org> | 2011-02-02 23:03:47 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-02-02 23:03:47 -0500 |
| commit | 1e063b32cdeaa6e07c8e720823ec5d280145cbcd (patch) | |
| tree | 68d3b99a1c1b54c1c1edf440e23904ec150c59d5 /src/pkg/runtime/debug.go | |
| parent | 6b93a92ac0ef864466254c58ffd1cbc9bc590ebc (diff) | |
| download | go-1e063b32cdeaa6e07c8e720823ec5d280145cbcd.tar.xz | |
runtime: faster allocator, garbage collector
GC is still single-threaded.
Multiple threads will happen in another CL.
Garbage collection pauses are typically
about half as long as they were before this CL.
R=brainman, iant, r
CC=golang-dev
https://golang.org/cl/3975046
Diffstat (limited to 'src/pkg/runtime/debug.go')
| -rw-r--r-- | src/pkg/runtime/debug.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkg/runtime/debug.go b/src/pkg/runtime/debug.go index d09db1be6a..5117e1a551 100644 --- a/src/pkg/runtime/debug.go +++ b/src/pkg/runtime/debug.go @@ -69,7 +69,8 @@ type MemStatsType struct { // Per-size allocation statistics. // Not locked during update; approximate. - BySize [67]struct { + // 61 is NumSizeClasses in the C code. + BySize [61]struct { Size uint32 Mallocs uint64 Frees uint64 |
