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
Journal ArticleDOI

Secure the Clones

TL;DR: In this paper, a type-based annotation system for defining modular copy policies for class-based object-oriented programs is proposed, where a copy policy specifies the maximally allowed sharing between an object and its clone.

Moya - A JIT Compiler for HPC.

TL;DR: Moya as discussed by the authors is an annotation-driven JIT compiler for compiled languages such as Fortran, C and C++ that combines a small number of easy-to-use annotations coupled with aggressive static analysis that enables dynamic optimization can be used to improve the performance of computationally intensive, long running numerical applications.
Proceedings ArticleDOI

A new speculation technique to optimize floating-point performance while preserving bit-by-bit reproducibility

TL;DR: A new software technique to optimize floating-point performance while preserving the bit-by-bit reproducibility of the results is proposed, called FP speculation, which is generally applicable for processor architectures that have sufficientfloating-point resources.
Book

Exploiting Task-Order Information: in Compilers for Shared-Memory Parallel Programs

TL;DR: This thesis presents a schedule analysis that can extract task-ordering information from real-world programs and can be combined with standard program analyses such as points-to and escape analysis to improve the precision of known optimizations as well as enable new optimizations.
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.