Commit 549dd8fe by Ian Lance Taylor

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
parent 8c0d1865
...@@ -810,7 +810,9 @@ func TestScanInts(t *testing.T) { ...@@ -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) { func testScanInts(t *testing.T, scan func(*RecursiveInt, *bytes.Buffer) os.Error) {
r := new(RecursiveInt) r := new(RecursiveInt)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment