Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/goPublic

Commit371a3ab

Browse files
committed
[release-branch.go1.1] test: do not run the test that relies on precise GC on 32-bits
««« CL 9573043 / c0f8999bd970test: do not run the test that relies on precise GC on 32-bitsCurrently most of the 32-bit builder are broken.Fixes#5516.R=golang-dev, dave, iantCC=golang-devhttps://golang.org/cl/9573043»»»R=dvyukov, iant, minux.ma, bradfitzCC=golang-devhttps://golang.org/cl/10032043
1 parentff7cb87 commit371a3ab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎test/fixedbugs/issue5493.go‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ func run() error {
3131
}
3232

3333
funcmain() {
34+
// Does not work on 32-bits due to partially conservative GC.
35+
// Try to enable when we have fully precise GC.
36+
ifruntime.GOARCH!="amd64" {
37+
return
38+
}
3439
count=N
3540
varwg sync.WaitGroup
3641
wg.Add(N)
@@ -46,6 +51,7 @@ func main() {
4651
runtime.GC()
4752
}
4853
ifcount!=0 {
54+
println(count,"out of",N,"finalizer are called")
4955
panic("not all finalizers are called")
5056
}
5157
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp