From 549dd8fe83a27a752865f0adc06881b9b867a2e2 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 23 Apr 2011 00:09:23 +0000 Subject: [PATCH] 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 --- libgo/go/fmt/scan_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libgo/go/fmt/scan_test.go b/libgo/go/fmt/scan_test.go index 8d2e6f5c64e..8eb3e5bfbb0 100644 --- a/libgo/go/fmt/scan_test.go +++ b/libgo/go/fmt/scan_test.go @@ -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) -- 2.30.2