This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
RE: PR java/1373: recursion stress test causes segmentation fault
Anthony Green writes:
> On Thu, 2004-10-21 at 01:35, Andrew Haley wrote:
> > > In fact, thinking about this some more, I'm not sure how this can be
> > > safely handled in standard JVMs either.
> >
> > Exactly. There aren't any significant differences between a
> > fully-compiled and a JIT environment from this point of view. So, if
> > they can do it, we can do it.
>
> Is it possible that they're just giving the illusion of doing it
> properly?
It certainly is!
> For instance, it's easy to imagine having a watchdog thread that
> periodically samples the various thread stack sizes and forces large
> enough ones to throw errors.
It would have to be very fast.
Perhaps they're doing stack probes at the entry point of every method.
That would be cheap and easy.
Andrew.