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]

Re: Exception Handling


On Saturday 12 June 2004 17:47, Andrew Haley wrote:
> Jeroen Frijters writes:
>  > 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.
>
> It's possible, but AFAICS the really interesting number is the ratio
> of try/throw.

From the gcj point of view, yes. The number of stack frames which have to be 
unwound is probably also of interest: my guess would be that many throws are 
caught in the same stack frame, but a substantial number will propagate a 
long way up the stack.

I think the measurements will have to be done by instrumenting the compiler - 
it's not easy for a runtime such as IKVM (or Wonka) to know that a try{} 
block is being entered. IOW I'm not volunteering to make the measurements, 
just suggesting that Somebody should do something. :)
 
-- 
Chris Gray                      /k/ Embedded Java Solutions
Embedded & Mobile Java, OSGi        http://www.kiffer.be/k/
chris.gray@kiffer.be                         +32 3 216 0369


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