From fac2ccbed320ef9fdca251d63b759b61bbc21f2a Mon Sep 17 00:00:00 2001 From: Michael Anthony Knyszek Date: Fri, 9 May 2025 19:54:01 +0000 Subject: [PATCH] doc: add a release note for greenteagc GOEXPERIMENT For #71661. Change-Id: I802b0c36cac3bbd87b35ff216f06822e87fb7b5d Reviewed-on: https://go-review.googlesource.com/c/go/+/671439 Reviewed-by: Michael Pratt LUCI-TryBot-Result: Go LUCI --- doc/next/4-runtime.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/next/4-runtime.md b/doc/next/4-runtime.md index e19996863d..4e8182c8cf 100644 --- a/doc/next/4-runtime.md +++ b/doc/next/4-runtime.md @@ -24,3 +24,15 @@ On Linux systems with kernel support for anonymous VMA names mappings with context about their purpose. e.g., `[anon: Go: heap]` for heap memory. This can be disabled with the [GODEBUG setting](/doc/godebug) `decoratemappings=0`. + + + +A new experimental garbage collector is now available as an experiment. The +new design aims to improve the efficiency of garbage collection through better +locality and CPU scalability in the mark algorithm. Benchmark result vary, but +we expect somewhere between a 10—40% reduction in garbage collection overhead +in real-world programs that heavily use the garbage collector. + +The new garbage collector may be enabled by setting `GOEXPERIMENT=greenteagc` +at build time. See the [GitHub issue](/issue/73581) for more details on the design +and instructions on how to report feedback. -- 2.51.0