This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: Exception Handling
- From: "Jeroen Frijters" <jeroen at sumatra dot nl>
- To: "Chris Gray" <chris dot gray at kiffer dot be>,"Andrew Haley" <aph at redhat dot com>,"Vincent Gable" <r7aaeg at freescale dot com>,<java at gcc dot gnu dot org>
- Date: Sat, 12 Jun 2004 14:05:09 +0200
- Subject: RE: Exception Handling
Chris Gray wrote:
> I don't have any hard numbers either, but my experience leads
> me to believe that exceptions are thrown far more often than most
> VM/compiler developers would like to think.
I agree.
> Maybe someone who knows where to put the printf()s should try
> measring the try/catch ratio of some big lump of real-world code,
> e.g. Eclipse?
Knowing where to put the printf is quite difficult for IKVM, but I just
started Eclipse 3.0M8 and looked at the .NET performance counter for the
number of exceptions and it was about 21000.
This number is an upper limit, because of the way the two systems differ
in exception handling some (most?) exceptions are counted multiple times
as they percolate up the stack.
Regards,
Jeroen