Hardware support for enforcing isolation in lock-based parallel programs

  • Authors:
  • Paruj Ratanaworabhan;Martin Burtscher;Darko Kirovski;Benjamin Zorn

  • Affiliations:
  • Faculty of Engineering, Kasetsart University, Bangkok, Thailand;Texas State University, San Macros, USA;Microsoft Research, Redmond, USA;Microsoft Research, Redmond, USA

  • Venue:
  • Proceedings of the 26th ACM international conference on Supercomputing
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

When lock-based parallel programs execute on conventional multi-core hardware, faulty software can cause hard-to-debug race conditions in critical sections that violate the contract between locks and their protected shared variables. This paper proposes new hardware support for enforcing isolation of critical section execution. It can detect and tolerate races, allowing programs to execute race-free. Our hardware scheme targets the existing large code base of locked-based parallel programs written in type unsafe languages such as C and C++. Our approach works directly on unmodified executables. An evaluation of 13 programs from the SPLASH2 and PARSEC suites shows that the cost of the additional hardware and the impact on the overall execution time is minimal for these applications. Our mechanism is complementary to hardware transactional memory in that it uses similar structures but focuses on enhancing the reliability of existing lock-based programs.