Re: java.lang.StackOverflowError
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Wed, 24 Jan 2007 19:28:14 -0500
<xareon@xxxxxxxxx> wrote in message
news:1169681375.515103.215970@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
yes man, u're right. i'm writing an universal parser for type 1
grammar, and i'll follow your hint and try to post in comp.compilers.
however, tell me: could i avoid the stackoverflow by resizing the
stack? i read somewhere that i could fix my problem by setting a bigger
stack, that eclipse should set really small by default value as some
people say. it's something about commands -Xms -Xmx -Xss, but i
couldn't manage to make them work (i just run the program via console
and get the same error). do you know something about?
Right, you could play around with the -Xms etc. settings (you can google
for the details), but as Andrew said, if you're running into errors after
just 12 characters, then you're memory usage is probably exponential
compared to the length of the input. Perhaps the problem you are trying to
solve is inherently exponential, I don't know the theory well enough to say
for sure. If it is exponential, then you're essentially out of luck and this
is an unsolvable problem. If you're lucky, the people at comp.compilers will
tell you it's not exponential, and give you an algorithm for solving it in
quadratic memory.
- Oliver
.
- Follow-Ups:
- Re: java.lang.StackOverflowError
- From: Patricia Shanahan
- Re: java.lang.StackOverflowError
- References:
- java.lang.StackOverflowError
- From: xareon
- Re: java.lang.StackOverflowError
- From: Oliver Wong
- Re: java.lang.StackOverflowError
- From: xareon
- Re: java.lang.StackOverflowError
- From: Oliver Wong
- Re: java.lang.StackOverflowError
- From: xareon
- Re: java.lang.StackOverflowError
- From: Oliver Wong
- Re: java.lang.StackOverflowError
- From: xareon
- java.lang.StackOverflowError
- Prev by Date: Re: reference .NET assembly in JAVA assembly
- Next by Date: Re: Suggestion for the choice of IDE
- Previous by thread: Re: java.lang.StackOverflowError
- Next by thread: Re: java.lang.StackOverflowError
- Index(es):
Relevant Pages
|