]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.18: add information on new pacer.
authorJeremy Faller <jeremy@golang.org>
Wed, 1 Dec 2021 17:44:04 +0000 (12:44 -0500)
committerJeremy Faller <jeremy@golang.org>
Thu, 2 Dec 2021 22:02:54 +0000 (22:02 +0000)
This is based off Michael's notes.

Updates #47694

Change-Id: I6e7944f85b776e8481829a2fafd177a49557c6ca
Reviewed-on: https://go-review.googlesource.com/c/go/+/368156
Trust: Jeremy Faller <jeremy@golang.org>
Run-TryBot: Jeremy Faller <jeremy@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
doc/go1.18.html

index 74d0e0c23eb9dcb999e8b649cf3434c42b30620d..285b44946e4dcfea546a16e3e952ce5232e3a86f 100644 (file)
@@ -200,6 +200,21 @@ proposal</a>.
   into Win32 functions that block for extended periods of time.
 </p>
 
+<p><!-- https://github.com/golang/go/issues/44167-->
+  The garbage collector now includes non-heap sources of garbage collector work
+  (e.g., stack scanning) when determining how frequently to run. As a result,
+  garbage collector overhead is more predictable when these sources are
+  significant. For most applications these changes will be negligible; however,
+  some Go applications may now use less memory and spend more time on garbage
+  collection, or vice versa, than before. The intended workaround is to tweak
+  <code>GOGC</code> where necessary.
+</p>
+
+<p>
+  The runtime now returns memory to the operating system more efficiently and has
+  been tuned to work more aggressively as a result.
+</p>
+
 <h2 id="compiler">Compiler</h2>
 
 <p><!-- https://golang.org/issue/40724 -->