Sound and Complete Monitoring of Sequential Consistency for Relaxed Memory Models
Sound and Complete Monitoring of Sequential Consistency for Relaxed Memory Models
复制标题
对宽松记忆模型的顺序一致性进行健全且完整的监控
DOI:
--
复制
发表时间:
2011
期刊:
影响因子:
--
通讯作者:
C. Stergiou
中科院分区:
文献类型:
--
作者:
Jacob Burnim;Koushik Sen;C. Stergiou
We present a technique for verifying that a program has no executions violating sequential consistency (SC) when run under the relaxed memory models Total Store Order (TSO) and Partial Store Order (PSO). The technique works by monitoring sequentially consistent executions of a program to detect if similar program executions could fail to be sequentially consistent under TSO or PSO.We propose novel monitoring algorithms that are sound and complete for TSO and PSO--if a program can exhibit an SC violation under TSO or PSO, then the corresponding monitor can detect this on some SC execution. The monitoring algorithms arise naturally from the operational definitions of these relaxed memory models, highlighting an advantage of viewing relaxed memory models operationally rather than axiomatically. We apply our technique to several concurrent data structures and synchronization primitives, detecting a number of violations of sequential consistency.