Current Status
Jon Olson
olson@mmsi.com
Thu Feb 18 09:57:00 GMT 1999
On 1999年2月18日, Jerry Kramskoy wrote:
>As you say, inlining at the JIT/executable level for the given example is
>fine semantically ... but out of interest, how do you handle inlining if the
>inlined method has any Java exception handlers? The reason I ask is
>that normally the inlinee method uses the inliners frame for stack-based
>storage ... are the handlers also compiled in the context of a missing
>frame.?
>
It's actually quite easy if you separate the concept of an exception frame
from a stack frame. An exception frame gets pushed whenever you enter
a try{} block; a stack frame gets pushed whenever you enter a method.
Basically, an inlined method containing an exception handler is merely
a nested exception.
--
Jon Olson, Modular Mining Systems
3289 E. Hemisphere Loop
Tucson, AZ 85706
INTERNET: olson@mmsi.com
PHONE: (520)746-9127
FAX: (520)889-5790
More information about the Java
mailing list