From: Bryan C. Mills Date: Mon, 22 Nov 2021 19:01:26 +0000 (-0500) Subject: [release-branch.go1.17] cmd/go: forward the MallocNanoZone variable to script tests X-Git-Tag: go1.17.4~12 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=364f15ff9f1f47c4ec08eb883c0318624592b3b5;p=gostls13.git [release-branch.go1.17] cmd/go: forward the MallocNanoZone variable to script tests For #49138 Updates #49723 Fixes #49729 Change-Id: Ia93130fdc042a1e2107be95cccd7e7eeaa909a87 Reviewed-on: https://go-review.googlesource.com/c/go/+/366254 Trust: Bryan C. Mills Run-TryBot: Bryan C. Mills Reviewed-by: Ian Lance Taylor (cherry picked from commit 189b4a2f428be7264db76e5275c96d98b847383b) Reviewed-on: https://go-review.googlesource.com/c/go/+/366257 TryBot-Result: Go Bot --- diff --git a/src/cmd/go/script_test.go b/src/cmd/go/script_test.go index 639e907db0..c0156d0262 100644 --- a/src/cmd/go/script_test.go +++ b/src/cmd/go/script_test.go @@ -142,6 +142,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.