From 1e063b32cdeaa6e07c8e720823ec5d280145cbcd Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 2 Feb 2011 23:03:47 -0500 Subject: 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 --- src/pkg/runtime/debug.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pkg/runtime/debug.go') 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 -- cgit v1.3