]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: forward the MallocNanoZone variable to script tests
authorBryan C. Mills <bcmills@google.com>
Mon, 22 Nov 2021 19:01:26 +0000 (14:01 -0500)
committerBryan C. Mills <bcmills@google.com>
Mon, 22 Nov 2021 19:49:38 +0000 (19:49 +0000)
For #49138
Fixes #49723

Change-Id: Ia93130fdc042a1e2107be95cccd7e7eeaa909a87
Reviewed-on: https://go-review.googlesource.com/c/go/+/366254
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/script_test.go

index 98c1b68ed9f1ad2f80876f91160ec0ac93056cfd..101195fc9d80ea5a63929c5b2287ca0bfcb65148 100644 (file)
@@ -146,6 +146,7 @@ var extraEnvKeys = []string{
        "GO_TESTING_GOTOOLS", // for gccgo testing
        "GCCGO",              // for gccgo testing
        "GCCGOTOOLDIR",       // for gccgo testing
+       "MallocNanoZone",     // Needed to work around an apparent kernel bug in macOS 12; see https://golang.org/issue/49138.
 }
 
 // setup sets up the test execution temporary directory and environment.