]> Cypherpunks repositories - gostls13.git/commitdiff
internal/buildcfg: enable greenteagc experiment for loong64
authorWANG Xuerui <git@xen0n.name>
Thu, 9 Oct 2025 08:05:35 +0000 (16:05 +0800)
committerGopher Robot <gobot@golang.org>
Fri, 10 Oct 2025 01:31:01 +0000 (18:31 -0700)
The loong64 compiler bug has been resolved, so we can now
unconditionally enable the experiment on the architecture.

Updates #73581
Fixes #75776

Change-Id: I390f8a125d43ca64798ea5b6a408aaf7220fadbf
Reviewed-on: https://go-review.googlesource.com/c/go/+/710476
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: abner chenc <chenguoqi@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/internal/buildcfg/exp.go

index fb6b5859e31a1e017c277fb6b0292ae230fac13e..f1a1d8632ef50729d7b450a1895b3425ce9f6d6f 100644 (file)
@@ -78,18 +78,13 @@ 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,
+               GreenTeaGC:            true,
        }
 
        // Start with the statically enabled set of experiments.