Loci: Simple Thread-Locality for Java

  • Tobias Wrigstad
  • Filip Pizlo
  • Fadi Meawad
  • Lei Zhao
  • Jan Vitek
Conference paper

DOI: 10.1007/978-3-642-03013-0_21

Part of the Lecture Notes in Computer Science book series (LNCS, volume 5653)
Cite this paper as:
Wrigstad T., Pizlo F., Meawad F., Zhao L., Vitek J. (2009) Loci: Simple Thread-Locality for Java. In: Drossopoulou S. (eds) ECOOP 2009 – Object-Oriented Programming. ECOOP 2009. Lecture Notes in Computer Science, vol 5653. Springer, Berlin, Heidelberg

Abstract

This paper presents a simple type system for thread-local data in Java. Classes and types are annotated to express thread-locality and unintended leaks are detected at compile-time. The system, called Loci, is minimal, modular and compatible with legacy code. The only change to the language is the addition of two new metadata annotations. We implemented Loci as an Eclipse plug-in and used it to evaluate our design on a number of benchmarks. We found that Loci is compatible with how Java programs are written and that the annotation overhead is light thanks to a judicious choice of defaults.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag Berlin Heidelberg 2009

Authors and Affiliations

  • Tobias Wrigstad
    • 1
  • Filip Pizlo
    • 1
  • Fadi Meawad
    • 1
  • Lei Zhao
    • 1
  • Jan Vitek
    • 1
  1. 1.Computer Science Dept.Purdue UniversityUSA

Personalised recommendations