]> Cypherpunks repositories - gostls13.git/commitdiff
undo CL 5504108 / 0edee03791f4
authorRuss Cox <rsc@golang.org>
Mon, 9 Jan 2012 17:45:08 +0000 (09:45 -0800)
committerRuss Cox <rsc@golang.org>
Mon, 9 Jan 2012 17:45:08 +0000 (09:45 -0800)
breaks 386 build

««« original CL description
gc: put limit on size of exported recursive interface

Prevents edge-case recursive types from consuming excessive memory.

Fixes #1909.

R=golang-dev, lvd, rsc
CC=golang-dev
https://golang.org/cl/5504108

»»»

R=lvd, lvd
CC=golang-dev
https://golang.org/cl/5534049

src/cmd/gc/fmt.c

index 3013d0d3293b78ff29d81d232704d403ea898859..f3be53c8fbf21bfdd4fedf1456b69f740ea6dbdb 100644 (file)
@@ -1450,7 +1450,7 @@ Tconv(Fmt *fp)
        if(t == T)
                return fmtstrcpy(fp, "<T>");
 
-       if(t->trecur > 4 || fp->nfmt > 1000)
+       if(t->trecur > 4)
                return fmtstrcpy(fp, "<...>");
 
        t->trecur++;