diff options
author | Austin Clements <austin@google.com> | 2017-06-08 10:15:38 -0400 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2017-06-08 17:47:50 +0000 |
commit | eb751fa40b8b9f8ce2f1fe70cc140ef99fb118a4 (patch) | |
tree | b7bc370c6fe599ebe9fb0b73dac8a6c44c533c86 /src/runtime/extern.go | |
parent | 0b77d3eb009335aaa72205c6642409a5e4a408d6 (diff) | |
download | go-eb751fa40b8b9f8ce2f1fe70cc140ef99fb118a4.tar.gz go-eb751fa40b8b9f8ce2f1fe70cc140ef99fb118a4.zip |
runtime: fix documentation error about runtime.GC()
runtime.GC no longer triggers a STW GC. This fixes the description of
GODEBUG=gctrace=1 so it doesn't claim otherwise.
Change-Id: Ibd34a55c5ae7b5eda5c2393b9a6674bdf1d51eb3
Reviewed-on: https://go-review.googlesource.com/45131
Reviewed-by: Rick Hudson <rlh@golang.org>
Diffstat (limited to 'src/runtime/extern.go')
-rw-r--r-- | src/runtime/extern.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/extern.go b/src/runtime/extern.go index 1c5e884088..6e6c674d96 100644 --- a/src/runtime/extern.go +++ b/src/runtime/extern.go @@ -78,7 +78,7 @@ It is a comma-separated list of name=val pairs setting these named variables: for mark/scan are broken down in to assist time (GC performed in line with allocation), background GC time, and idle GC time. If the line ends with "(forced)", this GC was forced by a - runtime.GC() call and all phases are STW. + runtime.GC() call. Setting gctrace to any value > 0 also causes the garbage collector to emit a summary when memory is released back to the system. |