scispace - formally typeset
Proceedings ArticleDOI

Escape analysis for Java

Reads0
Chats0
TLDR
A new program abstraction for escape analysis, the connection graph, that is used to establish reachability relationships between objects and object references is introduced and it is shown that the connectiongraph can be summarized for each method such that the same summary information may be used effectively in different calling contexts.
Abstract
This paper presents a simple and efficient data flow algorithm for escape analysis of objects in Java programs to determine (i) if an object can be allocated on the stack; (ii) if an object is accessed only by a single thread during its lifetime, so that synchronization operations on that object can be removed. We introduce a new program abstraction for escape analysis, the connection graph, that is used to establish reachability relationships between objects and object references. We show that the connection graph can be summarized for each method such that the same summary information may be used effectively in different calling contexts. We present an interprocedural algorithm that uses the above property to efficiently compute the connection graph and identify the non-escaping objects for methods and threads. The experimental results, from a prototype implementation of our framework in the IBM High Performance Compiler for Java, are very promising. The percentage of objects that may be allocated on the stack exceeds 70% of all dynamically created objects in three out of the ten benchmarks (with a median of 19%), 11% to 92% of all lock operations are eliminated in those ten programs (with a median of 51%), and the overall execution time reduction ranges from 2% to 23% (with a median of 7%) on a 333 MHz PowerPC workstation with 128 MB memory.

read more

Content maybe subject to copyright    Report

Citations
More filters
Proceedings ArticleDOI

Selective optimization of locks by runtime statistics and just-in-time compilation

TL;DR: This paper targets a contention problem of mutex locks, which degrades throughput or fairness of a server and proposes a method called SSJIT (System-level dynamic optimization using runtime Statistics and a JIT compiler), which obviates contention.

Accurate profiling in the presence of dynamic compilation.

TL;DR: This work presents a novel technique to make any profiler implemented at the bytecode level aware of optimizations performed by the dynamic compiler, implemented in a state-of-the-art Java virtual machine and demonstrated with concrete profilers.
Proceedings ArticleDOI

Accordion arrays

TL;DR: This work presents accordion arrays, a straight-forward and effective memory compression technique targeting Unicode-based character arrays, resulting in an average speedup of 2% across the benchmark suite, with individual speedups as high as 8%.
Book ChapterDOI

Faster alias set analysis using summaries

TL;DR: This paper uses two types of method summaries (callee and caller) to improve the performance of an interprocedural flow- and context-sensitive alias set analysis and shows that although caller summaries theoretically reduce precision, empirically they do not.
Proceedings ArticleDOI

The source is the proof

TL;DR: This work proposes an alternative to bytecode verification and techniques related to proof-carrying code for mobile code security that transports programs at a much higher level of abstraction and can achieve safe end-to-end transport of program source semantics.
References
More filters
Book

The Java Language Specification

TL;DR: The Java Language Specification, Second Edition is the definitive technical reference for the Java programming language and provides complete, accurate, and detailed coverage of the syntax and semantics of the Java language.
Proceedings ArticleDOI

A unified approach to global program optimization

TL;DR: A technique is presented for global analysis of program structure in order to perform compile time optimization of object code generated for expressions that includes constant propagation, common subexpression elimination, elimination of redundant register load operations, and live expression analysis.
Proceedings ArticleDOI

Compositional pointer and escape analysis for Java programs

TL;DR: A combined pointer and escape analysis algorithm for Java programs that uses the escape information to eliminate synchronization for objects that are accessed by only one thread and to allocate objects on the stack instead of in the heap.
Proceedings ArticleDOI

Escape analysis for object-oriented languages: application to Java

TL;DR: The main originality of the escape analysis is that it determines precisely the effect of assignments, which is necessary to apply it to object oriented languages with promising results, whereas previous work applied it to functional languages and were very imprecise on assignments.
Proceedings ArticleDOI

Thin locks: featherweight synchronization for Java

TL;DR: A new algorithm is proposed that allows lock and unlock operations to be performed with only a few machine instructions in the most common cases, and only require a partial word per object, and was implemented without increasing object size.