text/template: reduce maxExecDepth for gccgo further
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 8 Aug 2016 22:55:29 +0000 (22:55 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 8 Aug 2016 22:55:29 +0000 (22:55 +0000)
commit0717bdbfbd941c1b830fe11a21eff67dae04bdab
tree36b752cd7fa3d9897c3f58b892f0a8942e6ed389
parent895aa8e11319635104e6fa0dc1468fd6aec7b5b1
text/template: reduce maxExecDepth for gccgo further

    We already lowered the limit of recursive template invocations from
    100,000 to 10,000, but the tests still fail occasionally on
    x86_64-pc-linux-gnu when using GNU ld (so that split stacks are not
    fully functional).  Reduce the limit further, to 1000, enough so that
    the test passes consistently.

    Permitting 1000 recursive template invocations still seems capacious
    enough for real world use.

    Reviewed-on: https://go-review.googlesource.com/25590

From-SVN: r239261
gcc/go/gofrontend/MERGE
libgo/go/text/template/exec.go