计算机科学 > 程序设计语言
[提交于 2015年10月24日]
标题:Formalizing and Checking Thread Refinement for Data-Race-Free Execution Models (Extended Version)
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:When optimizing a thread in a concurrent program (either done manually or by the compiler), it must be guaranteed that the resulting thread is a refinement of the original thread. Most theories of valid optimizations are formulated in terms of valid syntactic transformations on the program code, or in terms of valid transformations on thread execution traces. We present a new theory formulated instead in terms of the state of threads at synchronization operations, and show that it provides several advantages: it supports more optimizations, and leads to more efficient and simpler procedures for refinement checking. We develop the theory for the SC-for-DRF execution model (using locks for synchronization), and show that its application in a compiler testing setting leads to large performance improvements.
提交历史
来自:Daniel Poetzl[v1] 2015年10月24日 星期六 18:22:05 UTC