Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fix for tests on MacOS 12 with -race flag (#351)
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 golang/go#49138 The fix is already merged in upstream, but yet not released. Change will perform OS and Golang version check and add MallocNanoZone=0 on MacOS with go17 <= 1.17.5 (I hope that 1.17.6 will include upstream fix)
- Loading branch information