re PR go/48553 (fmt FAILs on 32-bit Solaris 2 with stack overflow)

PR go/48553
libgo: Bring over patch to lower recursion depth in fmt.

From-SVN: r172883
This commit is contained in:
Ian Lance Taylor 2011-04-23 00:09:23 +00:00
parent 8c0d18659b
commit 549dd8fe83
1 changed files with 3 additions and 1 deletions

View File

@ -810,7 +810,9 @@ func TestScanInts(t *testing.T) {
})
}
const intCount = 1000
// 800 is small enough to not overflow the stack when using gccgo on a
// platform that does not support split stack.
const intCount = 800
func testScanInts(t *testing.T, scan func(*RecursiveInt, *bytes.Buffer) os.Error) {
r := new(RecursiveInt)