where do stack traces get filled in?

Tom Tromey tromey@redhat.com
Wed Dec 12 21:45:00 GMT 2001


>>>>> "Adam" == Adam Megacz <gcj@lists.megacz.com> writes:

Adam> I see Throwable.stackTrace, but it never gets created in
Adam> Throwable.java or natThrowable.cc...
natThrowable.cc defines java::lang::Throwable::fillInStackTrace.
This does the actual work. It is deceptively short because it relies
on glibc functionality. (On ia64 we use _Jv_ia64_backtrace in
sysdep/ia64.c.)
Adam> BTW, that's really bizzarre how printStackTrace spawns a process to
Adam> run c++filt...
Andrew will have to address that. I forgot why we did it this way.
Maybe licensing?
Adam> Also, is SJLJ the only exception style that gcc supports on
Adam> win32?
As far as I know, that is indeed the case right now.
Tom


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /