Dynamically Detecting and Tolerating IF-Condition Data Races Conference Paper uri icon


  • An IF-Condition Invariance Violation (ICIV) occurs when, after a thread has computed the control expression of an IF statement and while it is executing the THEN or ELSE clauses, another thread updates variables in the IF's control expression. An ICIV can be easily detected, and is likely to be a sign of a concurrency bug in the code. Typically, the ICIV is caused by a data race, which we call IF-Condition Data Race (ICR). In this paper, we analyze the data races reported in the bug databases of popular software systems and show that ICRs occur relatively often. Then, we present two techniques to handle ICRs dynamically. They rely on simple code transformations and, in one case, additional hardware help. One of them (SW-IF) detects the races, while the other (HW-IF) detects and prevents them. We evaluate SW-IF and HW-IF using a variety of applica- tions. We show that these new techniques are effective at finding new data race bugs and run with low overhead. Specifically, HW-IF finds 5 new (unreported) race bugs and SW-IF finds 3 of them. In addition, 8-threaded executions of SPLASH-2 codes show that, on average, SW-IF adds 2% execution overhead, while HW-IF adds less than 1%. 2014 IEEE.

name of conference

  • 2014 IEEE 20th International Symposium on High Performance Computer Architecture (HPCA)

published proceedings


author list (cited authors)

  • Qi, S., Muzahid, A. A., Ahn, W., & Torrellas, J.

citation count

  • 12

complete list of authors

  • Qi, Shanxiang||Muzahid, Abdullah A||Ahn, Wonsun||Torrellas, Josep

publication date

  • January 2014