internal/goexperiment: add Green Tea GC goexperiment

Change-Id: Ia3ea5290842d8eddfafad4882f5874a2aff03e94
Reviewed-on: https://go-review.googlesource.com/c/go/+/645935
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
Michael Anthony Knyszek 2025-01-31 20:12:19 +00:00 committed by Gopher Robot
parent e90ba1d208
commit f1ebad19bd
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,8 @@
// Code generated by mkconsts.go. DO NOT EDIT.
//go:build !goexperiment.greenteagc
package goexperiment
const GreenTeaGC = false
const GreenTeaGCInt = 0

View File

@ -0,0 +1,8 @@
// Code generated by mkconsts.go. DO NOT EDIT.
//go:build goexperiment.greenteagc
package goexperiment
const GreenTeaGC = true
const GreenTeaGCInt = 1

View File

@ -126,4 +126,7 @@ type Flags struct {
// JSONv2 enables the json/v2 package.
JSONv2 bool
// GreenTeaGC enables the Green Tea GC implementation.
GreenTeaGC bool
}