]> Cypherpunks repositories - gostls13.git/commit
runtime: set HeapGoal to zero when the GC is disabled
authorCarlos Amedee <carlos@golang.org>
Thu, 2 Jan 2025 19:41:59 +0000 (14:41 -0500)
committerCarlos Amedee <carlos@golang.org>
Fri, 30 May 2025 18:29:03 +0000 (11:29 -0700)
commit1947c4233a33953088468a23457f6779c34be2d1
tree05c073229c29650deb974c8f457b869d59ab14dc
parent8cd7f17248b9215530e9ce9ed7831fc24b5eeef7
runtime: set HeapGoal to zero when the GC is disabled

When the GC is disabled, the tracer should emit a heap goal of 0. Not
setting the heap goal to 0 causes an inaccurate NextGC value to be
emmited.

Fixes #63864

Change-Id: Iecceaca86c0a43c1cc4d9433f1f9bb736f01ccbc
Reviewed-on: https://go-review.googlesource.com/c/go/+/639417
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/traceruntime.go