Efficient Java exception handling in just-in-time compilation

Seungll Lee, Byungsun Yang, Suhyun Kim, Seong-Bae Park, Soo‐Mook Moon, Kemal Ebci̇oğlu, Erik Altman

2000 · 24 citations · 9 references

DOIFull text

Open access

Concepts

Abstract

The Java language provides exceptions in order to handle errors gracefully. However, the presence of exception handlers complicate the job of a JIT (Just-in-Time) compiler, including optimizations and register allocation, even though exceptions are rarely used in most programs. This paper describes some mechanisms for removing overheads imposed by the existence of exception handlers, including on-demand translation of exception handlers, which expose more optimization opportunities in normal flow. In addition, we also minimize the exception handling overhead for frequently thrown exceptions by jumping directly from the exception throwing point into the exception handler through a technique called exception handler prediction.

References

9