diff options
| author | thepudds <thepudds1460@gmail.com> | 2025-11-12 20:50:39 -0500 |
|---|---|---|
| committer | t hepudds <thepudds1460@gmail.com> | 2025-11-14 13:37:56 -0800 |
| commit | 5a347b775e051060f6f52ce25ec82a024a3a9365 (patch) | |
| tree | 9da5c211d1e299c265dc0ccf922d234e0c7d5bf5 /src | |
| parent | 1a03d0db3f36c1a81a184fa15a54f716569a9972 (diff) | |
| download | go-5a347b775e051060f6f52ce25ec82a024a3a9365.tar.xz | |
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 <shaojunyang@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/internal/buildcfg/exp.go | 1 | ||||
| -rw-r--r-- | src/internal/goexperiment/exp_runtimefree_off.go | 8 | ||||
| -rw-r--r-- | src/internal/goexperiment/exp_runtimefree_on.go | 8 | ||||
| -rw-r--r-- | src/internal/goexperiment/exp_runtimefreegc_off.go | 8 | ||||
| -rw-r--r-- | src/internal/goexperiment/exp_runtimefreegc_on.go | 8 | ||||
| -rw-r--r-- | src/internal/goexperiment/flags.go | 4 |
6 files changed, 18 insertions, 19 deletions
diff --git a/src/internal/buildcfg/exp.go b/src/internal/buildcfg/exp.go index 31195f94c0..f1a1d8632e 100644 --- a/src/internal/buildcfg/exp.go +++ b/src/internal/buildcfg/exp.go @@ -83,7 +83,6 @@ func ParseGOEXPERIMENT(goos, goarch, goexp string) (*ExperimentFlags, error) { RegabiArgs: regabiSupported, Dwarf5: dwarf5Supported, RandomizedHeapBase64: true, - RuntimeFree: true, SizeSpecializedMalloc: true, GreenTeaGC: true, } diff --git a/src/internal/goexperiment/exp_runtimefree_off.go b/src/internal/goexperiment/exp_runtimefree_off.go deleted file mode 100644 index 3affe434f2..0000000000 --- a/src/internal/goexperiment/exp_runtimefree_off.go +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by mkconsts.go. DO NOT EDIT. - -//go:build !goexperiment.runtimefree - -package goexperiment - -const RuntimeFree = false -const RuntimeFreeInt = 0 diff --git a/src/internal/goexperiment/exp_runtimefree_on.go b/src/internal/goexperiment/exp_runtimefree_on.go deleted file mode 100644 index 176278b542..0000000000 --- a/src/internal/goexperiment/exp_runtimefree_on.go +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by mkconsts.go. DO NOT EDIT. - -//go:build goexperiment.runtimefree - -package goexperiment - -const RuntimeFree = true -const RuntimeFreeInt = 1 diff --git a/src/internal/goexperiment/exp_runtimefreegc_off.go b/src/internal/goexperiment/exp_runtimefreegc_off.go new file mode 100644 index 0000000000..195f031b0b --- /dev/null +++ b/src/internal/goexperiment/exp_runtimefreegc_off.go @@ -0,0 +1,8 @@ +// Code generated by mkconsts.go. DO NOT EDIT. + +//go:build !goexperiment.runtimefreegc + +package goexperiment + +const RuntimeFreegc = false +const RuntimeFreegcInt = 0 diff --git a/src/internal/goexperiment/exp_runtimefreegc_on.go b/src/internal/goexperiment/exp_runtimefreegc_on.go new file mode 100644 index 0000000000..2afe0558ec --- /dev/null +++ b/src/internal/goexperiment/exp_runtimefreegc_on.go @@ -0,0 +1,8 @@ +// Code generated by mkconsts.go. DO NOT EDIT. + +//go:build goexperiment.runtimefreegc + +package goexperiment + +const RuntimeFreegc = true +const RuntimeFreegcInt = 1 diff --git a/src/internal/goexperiment/flags.go b/src/internal/goexperiment/flags.go index b3a3c8a497..957c41c0f5 100644 --- a/src/internal/goexperiment/flags.go +++ b/src/internal/goexperiment/flags.go @@ -113,8 +113,8 @@ type Flags struct { // platforms. RandomizedHeapBase64 bool - // RuntimeFree enables the runtime to free and reuse memory more eagerly in some circumstances with compiler help. - RuntimeFree bool + // RuntimeFreegc enables the runtime to free and reuse memory more eagerly in some circumstances with compiler help. + RuntimeFreegc bool // SizeSpecializedMalloc enables malloc implementations that are specialized per size class. SizeSpecializedMalloc bool |
