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

Opencj: A research Java static compiler based on Open64

TL;DR: This paper presents the first achievement of implementing a Java static compiler Opencj which can perform fully optimization for Java applications and illustrates that the performance of OpencJ is better than GCJ for SPECjvm98 benchmark suite.
Journal ArticleDOI

Improving the Java memory model using CRF

MaessenJan-Willem, +1 more
- 01 Oct 2000 - 
TL;DR: In this article, the authors describe alternative memory semantics for Java programs using an enriched version of the Commit/Reconcile/Fence (CRF) memory model, and outline a set of reasonable practices for sa...

A framework for optimistic program optimization

TL;DR: A generic framework that allows addressing the problem of program optimization through specifying verifiable source annotations to guide compiler analyses, and through optimistically using some assumptions and analysis results for the subset of the program seen so far is presented.
Journal ArticleDOI

Section-Based Program Analysis to Reduce Overhead of Detecting Unsynchronized Thread Communication

TL;DR: This work proposes Section-Based Program Analysis (SBPA), a novel way to decompose the program into disjoint code sections to identify and eliminate instrumenting such loads and stores during program compilation so that the program runtime overhead is significantly reduced.
Journal ArticleDOI

Synchronization as a Special Case of Access Control

TL;DR: This work proposes to integrate synchronization into access control in a Java-like language: Shared-variable access depends on the availability of tokens, and the compiler generates code for locking to gain the needed tokens (synchronization).
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.