diff --git a/src/internal/goexperiment/exp_greenteagc_off.go b/src/internal/goexperiment/exp_greenteagc_off.go new file mode 100644 index 0000000000000000000000000000000000000000..dce9d8c997434ca73fcf217cea7a1e33c7d70b29 --- /dev/null +++ b/src/internal/goexperiment/exp_greenteagc_off.go @@ -0,0 +1,8 @@ +// Code generated by mkconsts.go. DO NOT EDIT. + +//go:build !goexperiment.greenteagc + +package goexperiment + +const GreenTeaGC = false +const GreenTeaGCInt = 0 diff --git a/src/internal/goexperiment/exp_greenteagc_on.go b/src/internal/goexperiment/exp_greenteagc_on.go new file mode 100644 index 0000000000000000000000000000000000000000..10a007d757c148b9162e20226652e8f36267a028 --- /dev/null +++ b/src/internal/goexperiment/exp_greenteagc_on.go @@ -0,0 +1,8 @@ +// Code generated by mkconsts.go. DO NOT EDIT. + +//go:build goexperiment.greenteagc + +package goexperiment + +const GreenTeaGC = true +const GreenTeaGCInt = 1 diff --git a/src/internal/goexperiment/flags.go b/src/internal/goexperiment/flags.go index 0961764bee672140ec09b14df0d97c336e7b1d7b..ceff24193d89a59bfac804faf80871bc83a4d8d6 100644 --- a/src/internal/goexperiment/flags.go +++ b/src/internal/goexperiment/flags.go @@ -126,4 +126,7 @@ type Flags struct { // JSONv2 enables the json/v2 package. JSONv2 bool + + // GreenTeaGC enables the Green Tea GC implementation. + GreenTeaGC bool }