NobleBlocks

Research indexJournal article

Optimizing array reference checking in Java programs

Midkiff, Moreira, Snir

IBM Systems Journal1 Jan 1998

NobleIDark:/48914/w1/20260516/CB7F1809DOI10.1147/sj.373.0409

Paywalled

The full text is at the publisher

You can read the abstract here, or open it at the publisher.

Read at the publisher

Abstract

The Java™ language specification requires that all array references be checked for validity. If a reference is invalid, an exception must be thrown. Furthermore, the environment at the time of the exception must be preserved and made available to whatever code handles the exception. Performing the checks at run time incurs a large penalty in execution time. In this paper we describe a collection of transformations that can dramatically reduce this overhead in the common case (when the access is valid) while preserving the program state at the time of an exception. The transformations allow trade-offs to be made in the efficiency and size of the resulting code, and are fully compliant with the Java language semantics. Preliminary evaluation of the effectiveness of these transformations shows that performance improvements of 10 times and more can be achieved for array-intensive Java programs.

Discussion

Citations

Topics

More

Suggest a correction or report