jMT:测试Java内存模型的正确性(扩展版)
jMT: Testing Correctness of Java Memory Models (Extended Version)
AI总结:
jMT通过构建多执行语义来验证Java内存模型的正确性,支持对新提案的JMM进行程序级别的评估,并测试其与现有编译方案的兼容性。
摘要:
folklore常说“Java内存模型是破碎的”。因此,几种方法提出了修复方案,却发现新的程序表现出意外、非直观的行为,或模型禁止标准编译器优化。定义并发Java内存模型的复杂性在于,它需要多执行模型。多执行模型需要检查程序的多种潜在执行路径以找到有效的执行。然而,自动验证新型Java内存模型提案的工具却寥寥无几。为缓解这一问题,我们引入jMT,一种用于构建并发Java程序多执行语义的新工具。jMT依赖于定义良好执行图的单执行模型,基于此,通过因果检查构建有效的多执行语义。因此,jMT支持对新型Java内存模型(JMM)进行逐程序评估。jMT还可用于测试JMM与现有编译方案和编译器的兼容性。我们对jMT在169个litmus测试上的评估揭示了现有JMM的一些有趣见解。
英文摘要:
Folklore is often saying "The Java memory model is broken." Therefore, several approaches have proposed repairs, only to find new programs exhibiting unexpected, unintuitive behavior or the model forbidding standard compiler optimizations. The complexity of defining a memory model for concurrent Java lies in the fact that it requires a multi-execution model. Multi-execution models need to inspect the many potential executions of a program in order to find the valid ones. Tools automatically validating novel proposals of Java memory models are, however, largely lacking. To alleviate this problem, we introduce jMT, a novel tool for constructing multi-execution semantics for concurrent Java programs. jMT relies on single-execution models defining well-formed execution graphs, based on which it builds valid multi-execution semantics via causality checking. Thereby, jMT supports evaluating new proposals of Java memory models (JMMs) on a per-program basis. jMT can furthermore be employed for testing the conformance of JMMs to existing compilation schemes and compilers. Our evaluation of jMT on 169 litmus tests reveals a number of interesting insights into existing JMMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。