runtime: remove obsolete memory profiler comment

The runtime's internal free function was removed in
https://golang.org/cl/116390043, and the corresponding accounting code
in mProf_Free was cleaned up in
https://go-review.googlesource.com/16593. All frees now go through GC
sweeping and are accounted to cycle C+1 via mProf_Free.

Change-Id: I1923bd249fa1d718356de4c51653d7c96a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/768020
Reviewed-by: Nick Ripley <nick.ripley@datadoghq.com>
Reviewed-by: t hepudds <thepudds1460@gmail.com>
Auto-Submit: Keith Randall <khr@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Felix Geisendörfer 2026-04-15 09:27:54 -04:00 committed by Gopher Robot
parent d484fb9ddf
commit a804e04b7e

View file

@ -120,7 +120,6 @@ type memRecord struct {
// of the events from that cycle must be done. Specifically:
//
// Mallocs are accounted to cycle C+2.
// Explicit frees are accounted to cycle C+2.
// GC frees (done during sweeping) are accounted to cycle C+1.
//
// After mark termination, we increment the global heap