From d514411625bdd437c7d1997b92685bb03bfbf2a8 Mon Sep 17 00:00:00 2001 From: Jeremy Faller Date: Wed, 1 Dec 2021 12:44:04 -0500 Subject: [PATCH] doc/go1.18: add information on new pacer. 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 Run-TryBot: Jeremy Faller TryBot-Result: Gopher Robot Reviewed-by: Michael Knyszek --- doc/go1.18.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/go1.18.html b/doc/go1.18.html index 74d0e0c23eb..285b44946e4 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -200,6 +200,21 @@ proposal. into Win32 functions that block for extended periods of time.

+

+ 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 + GOGC where necessary. +

+ +

+ The runtime now returns memory to the operating system more efficiently and has + been tuned to work more aggressively as a result. +

+

Compiler