]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.17] runtime/race: rebuild darwin syso to work around macOS 12...
authorCherry Mui <cherryyz@google.com>
Tue, 30 Nov 2021 23:58:53 +0000 (18:58 -0500)
committerDmitri Shuralyov <dmitshur@golang.org>
Wed, 22 Dec 2021 16:58:09 +0000 (16:58 +0000)
commit59f1a26262ce157c0d8d0b87858649b2a7f752c0
treef11f0bc8e4b091d6f3b896e724991fc55ed62aaf
parentebd1b4d97db69715af01ad41a0e3422a93915c15
[release-branch.go1.17] runtime/race: rebuild darwin syso to work around macOS 12 malloc reserved address

On macOS 12 a new malloc implementation (nano) is used by default,
and apparently it reserves address range
0x600000000000-0x600020000000, which conflicts with the address
range that TSAN uses for Go. Work around the issue by changing the
address range slightly.

The actual change is made on LLVM at https://reviews.llvm.org/D114825 .
This CL includes syso's built with the patch applied.

The syso in 1.17 was identical to the syso before the equivalent fix
on the main branch, so the back-ported syso is identical to the fixed
syso on the main branch.

Fixes #50073.
Updates #49138.

Change-Id: I7b367d6e042b0db39a691c71601c98e4f8728a70
Reviewed-on: https://go-review.googlesource.com/c/go/+/367916
Trust: Cherry Mui <cherryyz@google.com>
Reviewed-by: Austin Clements <austin@google.com>
(cherry picked from commit 5f6552018d1ec920c3ca3d459691528f48363c3c)
Reviewed-on: https://go-review.googlesource.com/c/go/+/370697
src/runtime/race/README
src/runtime/race/race_darwin_amd64.syso
src/runtime/race/race_darwin_arm64.syso