Automatic fine-grain locking using shape properties

  • Authors:
  • Guy Golan-Gueta;Nathan Bronson;Alex Aiken;G. Ramalingam;Mooly Sagiv;Eran Yahav

  • Affiliations:
  • Tel Aviv University, Tel Aviv, Israel;Stanford University, Palo Alto, USA;Stanford University, Palo Alto, USA;Microsoft Research, Bangalore, India;Tel Aviv University, Tel Aviv, Israel;Technion, Haifa, Israel

  • Venue:
  • Proceedings of the 2011 ACM international conference on Object oriented programming systems languages and applications
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present a technique for automatically adding fine-grain locking to an abstract data type that is implemented using a dynamic forest -i.e., the data structures may be mutated, even to the point of violating forestness temporarily during the execution of a method of the ADT. Our automatic technique is based on Domination Locking, a novel locking protocol. Domination locking is designed specifically for software concurrency control, and in particular is designed for object-oriented software with destructive pointer updates. Domination locking is a strict generalization of existing locking protocols for dynamically changing graphs. We show our technique can successfully add fine-grain locking to libraries where manually performing locking is extremely challenging. We show that automatic fine-grain locking is more efficient than coarse-grain locking, and obtains similar performance to hand-crafted fine-grain locking.