A formalization of Java’s concurrent access modes
A formalization of Java’s concurrent access modes
复制标题
Java 并发访问模式的形式化
DOI:
10.1145/3360568
复制
发表时间:
2019
影响因子:
--
通讯作者:
Palsberg, Jens
中科院分区:
文献类型:
--
作者:
Bender, John;Palsberg, Jens
Java's memory model was recently updated and expanded with new access modes. The accompanying documentation for these access modes is intended to make strong guarantees about program behavior that the Java compiler must enforce, yet the documentation is frequently unclear. This makes the intended program behavior ambiguous, impedes discussion of key design decisions, and makes it impossible to prove general properties about the semantics of the access modes.In this paper we present the first formalization of Java's access modes. We have constructed an axiomatic model for all of the modes using the Herd modeling tool. This allows us to give precise answers to questions about the behavior of example programs, called litmus tests. We have validated our model using a large suite of litmus tests from existing research which helps to shed light on the relationship with other memory models. We have also modeled the semantics in Coq and proven several general theorems including a DRF guarantee, which says that if a program is properly synchronized then it will exhibit sequentially consistent behavior. Finally, we use our model to prove that the unusual design choice of a partial order among writes to the same location is unobservable in any program.
登录
查看更多内容
DOI:
10.1145/2837614.2837637
发表时间:
2016
期刊:
--
影响因子:
--
作者:
Batty M
通讯作者:
Batty M
DOI:
10.1145/2254064.2254102
发表时间:
2012
期刊:
--
影响因子:
--
作者:
Sarkar S
通讯作者:
Sarkar S
DOI:
10.1145/2814270.2814318
发表时间:
2015
期刊:
Proceedings of the 2015 ACM SIGPLAN International Conference on Object-Oriented Programming, Systems, Languages, and Applications
影响因子:
--
作者:
John Bender;M. Lesani;J. Palsberg
通讯作者:
J. Palsberg
影响因子:
--
作者:
Ou, Peizhao;Demsky, Brian
通讯作者:
Demsky, Brian
影响因子:
--
作者:
Karl Crary;Michael J. Sullivan
通讯作者:
Michael J. Sullivan