From afcf04cb6401b439ce9bdcd18448c512f5bfda77 Mon Sep 17 00:00:00 2001 From: Cherry Mui Date: Thu, 7 May 2026 22:24:18 -0400 Subject: [PATCH] internal/goexperiment: actually delete goroutineleakprofile experiment CL 774621 deleted the generated _on, _off files of the goroutineleakprofile experiment and all uses of it, but did not delete the definition of the flag itself, leaving internal/goexperiment not "go generate"-clean. This CL actually deletes the flag. Updates #74609. Change-Id: I1e3f49eeaf5691fc70e4dc34aae364de95f79571 Reviewed-on: https://go-review.googlesource.com/c/go/+/775621 TryBot-Bypass: Cherry Mui Auto-Submit: Austin Clements Reviewed-by: Austin Clements --- src/internal/buildcfg/exp.go | 1 - src/internal/goexperiment/flags.go | 3 --- 2 files changed, 4 deletions(-) diff --git a/src/internal/buildcfg/exp.go b/src/internal/buildcfg/exp.go index 82866cef66..c8506d41bb 100644 --- a/src/internal/buildcfg/exp.go +++ b/src/internal/buildcfg/exp.go @@ -84,7 +84,6 @@ func ParseGOEXPERIMENT(goos, goarch, goexp string) (*ExperimentFlags, error) { Dwarf5: dwarf5Supported, RandomizedHeapBase64: true, GreenTeaGC: true, - GoroutineLeakProfile: true, } flags := &ExperimentFlags{ Flags: baseline, diff --git a/src/internal/goexperiment/flags.go b/src/internal/goexperiment/flags.go index 683316b213..17fe15270a 100644 --- a/src/internal/goexperiment/flags.go +++ b/src/internal/goexperiment/flags.go @@ -122,9 +122,6 @@ type Flags struct { // SizeSpecializedMalloc enables malloc implementations that are specialized per size class. SizeSpecializedMalloc bool - // GoroutineLeakProfile enables the collection of goroutine leak profiles. - GoroutineLeakProfile bool - // SIMD enables the simd package and the compiler's handling // of SIMD intrinsics. SIMD bool