paperbot · PL 论文追踪

全部论文 待读 收藏

P2 VSync: push-button verification and optimization for synchronization primitives on weak memory models

VSync:弱内存模型上同步原语的一键式验证与优化
ASPLOS Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems2021匹配度 3/10 · 该论文属于程序验证与弱内存模型下的同步原语分析,与用户关注的 PL 和形式化验证有邻接关系,但不涉及 LLM/Agent、浮点程序分析或贝叶斯程序分析,也未体现 AI 与 PL 的交叉。引用 40 inbox
Jonas Oberhauser, Rafael Lourenco de Lima Chehab, Diogo Behrens, Ming Fu, Antonio Paolillo, Lilith Oberhauser, Koustubha Bhat, Yuzhong Wen, Haibo Chen, Jaeho Kim, Viktor Vafeiadis
crossref: 2026-09-12

AI 速览

一句话:提出 VSync 框架,自动检测弱内存模型同步原语中缺失与过度约束的内存屏障,并验证其安全与活性。

现代弱内存模型架构(如 ARM 和 RISC-V)上,即使专家也难实现高效且正确的同步原语;缺失或过度约束的 barrier 会威胁正确性或性能。VSync 是一个辅助优化与验证此类同步原语的框架,可自动检测缺失和过度约束的 barrier,并确保必要的安全与活性属性。它引入两项新技术:自适应线性松弛(ALR)利用 barrier 单调性和推测,快速寻找正确且最大程度松弛的 barrier 组合;Await 模型检测(AMC)则首次使在弱内存模型上检查 await 循环终止性成为可能。该工作为 WMM 同步原语的一键式验证与优化提供了新途径。

问题
在现代弱内存模型(如 ARM、RISC-V)上实现高效且正确的同步原语非常困难,专家也容易出错;缺失或过度约束的 barrier 会影响正确性与性能。
方法
提出 VSync 框架,通过 ALR 利用 barrier 单调性与推测快速寻找正确的最大松弛屏障组合,并通过 AMC 在弱内存模型上检查 await 循环终止,自动检测缺失或过约束 barrier 并保证安全与活性。
评估
摘要未报告具体实验设置或数据;其评估目标是在 WMM 架构上自动优化并验证同步原语,关键能力包括检测 barrier 问题和首次检查 await 循环终止。
原文摘要(Abstract)

Implementing highly efficient and correct synchronization primitives on modern Weak Memory Model (WMM) architectures, such as ARM and RISC-V, is very difficult even for human experts. We introduce VSync, a framework to assist in optimizing and verifying synchronization primitives on WMM architectures. VSync automatically detects missing and overly-constrained barriers, while ensuring essential safety and liveness properties. VSync relies on two novel techniques: 1) Adaptive Linear Relaxation (ALR), which utilizes barrier monotonicity and speculation to quickly find a correct maximally-relaxed barrier combination; and 2) Await Model Checking (AMC), which for the first time makes it possible to check termination of await loops on WMMs.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot6083,
  title = {VSync: push-button verification and optimization for synchronization primitives on weak memory models},
  author = {Jonas Oberhauser and Rafael Lourenco de Lima Chehab and Diogo Behrens and Ming Fu and Antonio Paolillo and Lilith Oberhauser and Koustubha Bhat and Yuzhong Wen and Haibo Chen and Jaeho Kim and Viktor Vafeiadis},
  booktitle = {ASPLOS},
  year = {2021},
  doi = {10.1145/3445814.3446748}
}