Skip to content

Commit 5a347b7

Browse files
committed
runtime: set GOEXPERIMENT=runtimefreegc to disabled by default
This CL is part of a set of CLs that attempt to reduce how much work the GC must do. See the design in https://go.dev/design/74299-runtime-freegc The plan has been for GOEXPERIMENT=runtimefreegc to be disabled by default for Go 1.26, so here we disable it. Also, we update the name of the GOEXPERIMENT to reflect the latest name. Updates #74299 Change-Id: I94a34784700152e13ca93ef6711ee9b7f1769d9a Reviewed-on: https://go-review.googlesource.com/c/go/+/720120 Reviewed-by: Junyang Shao <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
1 parent 1a03d0d commit 5a347b7

File tree

6 files changed

+18
-19
lines changed

6 files changed

+18
-19
lines changed

src/internal/buildcfg/exp.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ func ParseGOEXPERIMENT(goos, goarch, goexp string) (*ExperimentFlags, error) {
8383
RegabiArgs: regabiSupported,
8484
Dwarf5: dwarf5Supported,
8585
RandomizedHeapBase64: true,
86-
RuntimeFree: true,
8786
SizeSpecializedMalloc: true,
8887
GreenTeaGC: true,
8988
}

src/internal/goexperiment/exp_runtimefree_off.go

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/internal/goexperiment/exp_runtimefree_on.go

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/internal/goexperiment/exp_runtimefreegc_off.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/internal/goexperiment/exp_runtimefreegc_on.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/internal/goexperiment/flags.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ type Flags struct {
113113
// platforms.
114114
RandomizedHeapBase64 bool
115115

116-
// RuntimeFree enables the runtime to free and reuse memory more eagerly in some circumstances with compiler help.
117-
RuntimeFree bool
116+
// RuntimeFreegc enables the runtime to free and reuse memory more eagerly in some circumstances with compiler help.
117+
RuntimeFreegc bool
118118

119119
// SizeSpecializedMalloc enables malloc implementations that are specialized per size class.
120120
SizeSpecializedMalloc bool

0 commit comments

Comments
 (0)