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]

Exception Handling


Vincent Gable writes:
 > 
 > Does anybody know why exceptions in gcj are so slow?  How are they 
 > currently implemented?

gcj uses the DWARF unwinder, which has the property of not requiring
any code to generated for a try block.  The penalty is that a throw is
interpreted through the unwind tables, and so is rather slow.  In real
applications, throwing exceptions is fairly rare, so trading less time
for try blocks and more time for throw is a pretty good deal.

Andrew.


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