This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

backtrace() vs. _Unwind_Backtrace()


David Mosberger writes:
 > While debugging another problem, I noticed that libjava currently
 > attempts to use libc's backtrace() function to create a stack trace
 > (libjava/gnu/gcj/runtime/natStackTrace.cc).  Recently, libgcc got an
 > _Unwind_Backtrace() function, which I think should do exactly what's
 > needed there (in combination with _Unwind_GetIP()), so I think it
 > would make sense to switch to _Unwind_Backtrace() instead.

Java uses backtrace() a lot, and _Unwind_Backtrace() is inefficient.
I see no good reason to switch unless backtrace() doesn't work on a
given target.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]