Prescient memory: exposing weak memory model behavior by looking into the future
Open Access
- 14 June 2016
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 99-110
Abstract
Shared-memory parallel programs are hard to get right. A major challenge is that language and hardware memory models allow unexpected, erroneous behaviors for executions containing data races. Researchers have introduced dynamic analyses that expose weak memory model behaviors, but these approaches cannot expose behaviors due to loading a "future value" -- a value written by a program store that executes after the program load that uses the value. This paper presents prescient memory (PM), a novel dynamic analysis that exposes behaviors due to future values. PM speculatively returns a future value at a program load, and tries to validate the speculative value at a later store. To enable PM to expose behaviors due to future values in real application executions, we introduce a novel approach that increases the chances of using and successfully validating future values, by profiling and predicting future values and guiding execution. Experiments show that our approach is able to uncover a few previously unknown behaviors due to future values in benchmarked versions of real applications. Overall, PM overcomes a key limitation of existing approaches, broadening the scope of program behaviors that dynamic analyses can expose.Keywords
Funding Information
- National Science Foundation (CSR-1218695, CAREER-1253703, CCF-1421612)
This publication has 63 references indexed in Scilit:
- Data races vs. data race bugsACM SIGARCH Computer Architecture News, 2012
- CheckFenceACM SIGPLAN Notices, 2007
- Conditional must not aliasing for static race detectionACM SIGPLAN Notices, 2007
- MultiRace: efficient on‐the‐fly data race detection in multithreaded C++ programsConcurrency and Computation: Practice and Experience, 2006
- Effective static race detection for JavaACM SIGPLAN Notices, 2006
- The Java memory modelACM SIGPLAN Notices, 2005
- Hybrid dynamic data race detectionACM SIGPLAN Notices, 2003
- Object race detectionACM SIGPLAN Notices, 2001
- Model checking JAVA programs using JAVA PathFinderInternational Journal on Software Tools for Technology Transfer, 2000
- Weak ordering—a new definitionACM SIGARCH Computer Architecture News, 1990