diff options
| author | Michael Anthony Knyszek <mknyszek@google.com> | 2025-03-09 17:19:48 +0000 |
|---|---|---|
| committer | Michael Knyszek <mknyszek@google.com> | 2025-10-06 16:01:40 -0700 |
| commit | 7fbf54bfebf9243550177bc6871d80e58bedf1a6 (patch) | |
| tree | 4d3f6de17a59c652e85996f22c1933e84efca162 /src | |
| parent | 7bfeb43509acbe75ce8e1a14c60bffe597e46813 (diff) | |
| download | go-7fbf54bfebf9243550177bc6871d80e58bedf1a6.tar.xz | |
internal/buildcfg: enable greenteagc experiment by default
Slightly bump the value in Test/wasmmemsize.go. We use 1 additional page
compared to before, and we were already sitting *right* on the edge.
For #73581.
Change-Id: I485df16c3cf59803a8a1fc852b3e90666981ab09
Reviewed-on: https://go-review.googlesource.com/c/go/+/656195
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/internal/buildcfg/exp.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/internal/buildcfg/exp.go b/src/internal/buildcfg/exp.go index d06913d9a7..fb6b5859e3 100644 --- a/src/internal/buildcfg/exp.go +++ b/src/internal/buildcfg/exp.go @@ -78,12 +78,18 @@ func ParseGOEXPERIMENT(goos, goarch, goexp string) (*ExperimentFlags, error) { // things like .debug_addr (needed for DWARF 5). dwarf5Supported := (goos != "darwin" && goos != "ios" && goos != "aix") + // The compiler crashes while compiling some of the Green Tea code. + // The Green Tea code is pretty normal, so this is likely a compiler + // bug in the loong64 port. + greenTeaGCSupported := goarch != "loong64" + baseline := goexperiment.Flags{ RegabiWrappers: regabiSupported, RegabiArgs: regabiSupported, Dwarf5: dwarf5Supported, RandomizedHeapBase64: true, SizeSpecializedMalloc: true, + GreenTeaGC: greenTeaGCSupported, } // Start with the statically enabled set of experiments. |
