Re: stack overflow error
Re: stack overflow error
- Subject: Re: stack overflow error
- From: Ken Anderson <email@hidden>
- Date: Sat, 21 Oct 2006 18:47:37 -0400
I'm not sure, but I'll certainly give it a go - thanks!
On Oct 21, 2006, at 8:59 AM, Florijan Stamenkovic wrote:
If indeed you have a recursion which legally overflows, maybe you
could re-implement your recursion to avoid that using multiple
threads. The idea is that you attempt to find the stack length using:
workerThread.getStackTrace().length,
and then see if that length is approaching the maximum stack
length, whatever value that might be. If so, you could continue
the recursion in another thread.
Uhm, I just realized that this works only if every thread has it's
own stack with a standard maximum size, and not if all the threads
share only one stack. I don't know enough of how things work to say
that, I assumed that every thread has a separate stack. Sorry if I
was mistaken, it seemed like a possible solution at the time.
Flor
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40anderhome.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden