Type inference for atomicity

  • Authors:
  • Cormac Flanagan;Stephen N. Freund;Marina Lifshin

  • Affiliations:
  • University of California, Santa Cruz, Santa Cruz, CA;Williams College, Williamstown, MA;Williams College, Williamstown, MA

  • Venue:
  • TLDI '05 Proceedings of the 2005 ACM SIGPLAN international workshop on Types in languages design and implementation
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

Atomicity is a fundamental correctness property in multithreaded programs. This paper presents an algorithm for verifying atomicity via type inference. The underlying type system supports guarded, write-guarded, and unguarded fields, as well as thread-local data, parameterized classes and methods, and protected locks. We describe an implementation of this algorithm for Java and discuss its performance and usability on benchmarks totaling sixty thousand lines of code.