I think that the fix is in there, which means that your input is too big
to build the tree in the way it is being done. Write an input stream
wrapper that splits the input by just returning EOF at the split point
then resets to the next unit.

How are you ending up with 640,000 lines of C input?

Jim


> -----Original Message-----
> From: antlr-interest-boun...@antlr.org [mailto:antlr-interest-
> boun...@antlr.org] On Behalf Of Marco Trudel
> Sent: Wednesday, February 02, 2011 8:20 AM
> To: antlr-interest@antlr.org
> Subject: Re: [antlr-interest] Memory management of C target
>
> Dear Jim
>
> On 01.02.2011 18:15, Jim Idle wrote:
> > <snip>
> >
> > I think
> > that in 3.3 I have fixed a bug that was not releasing memory
> > references when building a tree until the tree was freed. Try making
> a
> > version that does not build a tree and see how it differs.
> >
> > <snip>
>
> Ok, made a version of my grammar that doesn't build a tree:
>
> libantlr3c-3.2, no tree output: works, uses about 600mb memory
> libantlr3c-3.2, tree output: crash, wants more than 2gb
>
> libantlr3c-3.3-SNAPSHOT, no tree output: works, uses about 630mb memory
> libantlr3c-3.3-SNAPSHOT, tree output: crash, wants more than 2gb
>
> The only changes to the grammar where removing/adding "output = AST;".
> Is your fix already in the current SNAPSHOT?
>
>
> Thanks
> Marco
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to