1
0
mirror of https://github.com/golang/go synced 2024-11-11 17:51:49 -07:00

test: disable a couple of precise GC tests for gccgo

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/41610043
This commit is contained in:
Ian Lance Taylor 2013-12-12 17:13:27 -08:00
parent e8a1de720f
commit d12b08d228
2 changed files with 7 additions and 2 deletions

View File

@ -23,6 +23,10 @@ func main() {
if runtime.GOARCH != "amd64" {
return
}
// Likewise for gccgo.
if runtime.Compiler == "gccgo" {
return
}
N := 10
count := int32(N)
var wg sync.WaitGroup

View File

@ -31,9 +31,10 @@ func run() error {
}
func main() {
// Does not work on 32-bits due to partially conservative GC.
// Does not work on 32-bits, or with gccgo, due to partially
// conservative GC.
// Try to enable when we have fully precise GC.
if runtime.GOARCH != "amd64" {
if runtime.GOARCH != "amd64" || runtime.Compiler == "gccgo" {
return
}
count = N