diff options
| author | Russ Cox <rsc@golang.org> | 2010-03-08 14:15:44 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2010-03-08 14:15:44 -0800 |
| commit | 8ddd6c4181ca29c455cdfc3cf92a6d0219ecad23 (patch) | |
| tree | 770415564975c6f128c1e20b20ef76dbfad9d33a /src/pkg/runtime/extern.go | |
| parent | 18187e7d49502b8fde3307c3719bb77869a7bbd7 (diff) | |
| download | go-8ddd6c4181ca29c455cdfc3cf92a6d0219ecad23.tar.xz | |
runtime: clock garbage collection on bytes allocated, not pages in use
This keeps fragmentation from delaying
garbage collections (and causing more fragmentation).
Cuts fresh godoc (with indexes) from 261M to 166M (120M live).
Cuts toy wc program from 50M to 8M.
Fixes #647.
R=r, cw
CC=golang-dev
https://golang.org/cl/257041
Diffstat (limited to 'src/pkg/runtime/extern.go')
| -rw-r--r-- | src/pkg/runtime/extern.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/extern.go b/src/pkg/runtime/extern.go index 4ee3076c79..f34bb2256c 100644 --- a/src/pkg/runtime/extern.go +++ b/src/pkg/runtime/extern.go @@ -78,6 +78,7 @@ type MemStatsType struct { Stacks uint64 InusePages uint64 NextGC uint64 + HeapAlloc uint64 Lookups uint64 Mallocs uint64 PauseNs uint64 |
