diff options
| author | Russ Cox <rsc@golang.org> | 2022-05-18 16:46:20 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-05-19 15:49:05 +0000 |
| commit | 946b4baaf6521d521928500b2b57429c149854e7 (patch) | |
| tree | 4acad539bb1fb52aab5112fb664365ea003c8dd4 /src/runtime/debug | |
| parent | e23cc0844d542688c0956900206fca7c602593c5 (diff) | |
| download | go-946b4baaf6521d521928500b2b57429c149854e7.tar.xz | |
all: gofmt main repo
Excluding vendor and testdata.
CL 384268 already reformatted most, but these slipped past.
The struct in the doc comment in debug/dwarf/type.go
was fixed up by hand to indent the first and last lines as well.
For #51082.
Change-Id: Iad020f83aafd671ff58238fe491907e85923d0c7
Reviewed-on: https://go-review.googlesource.com/c/go/+/407137
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/runtime/debug')
| -rw-r--r-- | src/runtime/debug/garbage.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/runtime/debug/garbage.go b/src/runtime/debug/garbage.go index 73dd61b83e..0f53928fe8 100644 --- a/src/runtime/debug/garbage.go +++ b/src/runtime/debug/garbage.go @@ -188,7 +188,6 @@ func SetTraceback(level string) // aggressively. This limit will be respected even if GOGC=off (or, // if SetGCPercent(-1) is executed). // -// // The input limit is provided as bytes, and includes all memory // mapped, managed, and not released by the Go runtime. Notably, it // does not account for space used by the Go binary and memory @@ -202,11 +201,11 @@ func SetTraceback(level string) // More specifically, the following expression accurately reflects // the value the runtime attempts to maintain as the limit: // -// runtime.MemStats.Sys - runtime.MemStats.HeapReleased +// runtime.MemStats.Sys - runtime.MemStats.HeapReleased // // or in terms of the runtime/metrics package: // -// /memory/classes/total:bytes - /memory/classes/heap/released:bytes +// /memory/classes/total:bytes - /memory/classes/heap/released:bytes // // A zero limit or a limit that's lower than the amount of memory // used by the Go runtime may cause the garbage collector to run |
