diff options
author | Russ Cox <rsc@golang.org> | 2010-04-06 13:48:31 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-04-06 13:48:31 -0700 |
commit | 88ce9ce40ca66f4886f3febbcbaaa77a6bf19977 (patch) | |
tree | fb543b8e971f0463653a22632e7876537b5f8991 /test/recover2.go | |
parent | 6c3befc824ce9980666aea5e3a2783a0e4872999 (diff) | |
download | go-88ce9ce40ca66f4886f3febbcbaaa77a6bf19977.tar.gz go-88ce9ce40ca66f4886f3febbcbaaa77a6bf19977.zip |
runtime: two proc bug fixes
1. Fix bug in GOMAXPROCS when trying to cut number of procs
Race could happen on any system but was
manifesting only on Xen hosted Linux.
2. Fix recover on ARM, where FP != caller SP.
R=r
CC=golang-dev
https://golang.org/cl/880043
Diffstat (limited to 'test/recover2.go')
-rw-r--r-- | test/recover2.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/recover2.go b/test/recover2.go index 96d591a15b..a6f75770c9 100644 --- a/test/recover2.go +++ b/test/recover2.go @@ -15,6 +15,7 @@ package main import ( "os" "strings" + "syscall" ) var x = make([]byte, 10) @@ -80,6 +81,10 @@ func test6() { } func test7() { + if syscall.ARCH == "arm" { + // ARM doesn't have floating point yet + return + } defer mustRecover("complex divide by zero") var x, y complex println(x / y) |