mirror of
https://github.com/golang/go
synced 2024-11-24 14:00:15 -07:00
30d7e6449f
For unknown reasons, linking against CoreFoundation on macOS 10.10 sometimes causes mmap to ignore the hint address, which makes the Go allocator incompatible with TSAN. Currently, the effect of this is to run the allocator out of arena hints on the very first allocation, causing a "too many address space collisions for -race mode" panic. This CL skips the cgo tests that link against CoreFoundation in race mode. Updates #26475. Updates #26513. Change-Id: I52ec638c99acf5d4966e68ff0054f7679680dac6 Reviewed-on: https://go-review.googlesource.com/125304 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
40 lines
827 B
Go
40 lines
827 B
Go
// Copyright 2018 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// See issue21897.go and golang.org/issue/26475 for why this is
|
|
// skipped in race mode.
|
|
//
|
|
// TODO(austin): Once support for macOS 10.10 is dropped, remove the
|
|
// race constraint. See golang.org/issue/26513.
|
|
|
|
// +build !race
|
|
|
|
package cgotest
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"./issue24161arg"
|
|
"./issue24161e0"
|
|
"./issue24161e1"
|
|
"./issue24161e2"
|
|
"./issue24161res"
|
|
)
|
|
|
|
func Test24161Arg(t *testing.T) {
|
|
issue24161arg.Test(t)
|
|
}
|
|
func Test24161Res(t *testing.T) {
|
|
issue24161res.Test(t)
|
|
}
|
|
func Test24161Example0(t *testing.T) {
|
|
issue24161e0.Test(t)
|
|
}
|
|
func Test24161Example1(t *testing.T) {
|
|
issue24161e1.Test(t)
|
|
}
|
|
func Test24161Example2(t *testing.T) {
|
|
issue24161e2.Test(t)
|
|
}
|