paperbot · PL 论文追踪

全部论文 待读 收藏

P2 MAP-Coverage: A Novel Coverage Criterion for Testing Thread-Safe Classes

MAP-Coverage:一种用于测试线程安全类的新型覆盖准则
ASE 2019 34th IEEE/ACM International Conference on Automated Software Engineering (ASE)2019匹配度 2/10 · 该论文研究并发程序测试的覆盖准则与测试生成,属于程序语言/软件工程中的并发测试方向,但未涉及静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析,也与用户当前‘PL与AI/LLM交叉’的核心研究问题无直接关联。引用 11 inbox
Zan Wang, Yingquan Zhao, Shuang Liu, Jun Sun, Xiang Chen, Huarui Lin
crossref: 2026-09-12

AI 速览

一句话:提出面向线程安全类的内存访问模式覆盖准则 MAP-Coverage,并给出最大化该覆盖率的并发测试方法。

并发程序难以充分测试,传统代码覆盖准则面向顺序程序,难以有效刻画并发缺陷。本文提出一种面向线程安全类的新型代码覆盖准则 MAP-Coverage(memory-access patterns),其动机是并发缺陷常与特定内存访问模式相关,因而应全面覆盖这些模式。作者进一步提出最大化 MAP-Coverage 的测试方法,并实现为独立工具包。在 20 个基准程序上的实验表明,该工具包优于现有测试方法;实证结果还显示 MAP-Coverage 与一组测试执行的有效性之间存在正相关。

问题
传统代码覆盖准则面向顺序程序,无法有效指导并发程序(尤其是线程安全类)的测试,而并发缺陷又难以检测。
方法
提出以内存访问模式为覆盖目标的 MAP-Coverage 准则,并设计、实现最大化该覆盖率的测试工具包。
评估
在 20 个基准程序上与现有测试方法进行比较,并实证分析 MAP-Coverage 与测试执行有效性之间的相关性。
原文摘要(Abstract)

Concurrent programs must be thoroughly tested, as concurrency bugs are notoriously hard to detect. Code coverage criteria can be used to quantify the richness of a test suite (e.g., whether a program has been tested sufficiently) or provide practical guidelines on test case generation (e.g., as objective functions used in program fuzzing engines). Traditional code coverage criteria are, however, designed for sequential programs and thus ineffective for concurrent programs. In this work, we introduce a novel code coverage criterion for testing thread-safe classes called MAP-coverage (short for memory-access patterns). The motivation is that concurrency bugs are often correlated with certain memory-access patterns, and thus it is desirable to comprehensively cover all memory-access patterns. Furthermore, we propose a testing method for maximizing MAP-coverage. Our method has been implemented as a self-contained toolkit, and the experimental results on 20 benchmark programs show that our toolkit outperforms existing testing methods. Lastly, we show empirically that there exists positive correlation between MAP-coverage and the effectiveness of a set of test executions.

链接与引用

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

BibTeX
@inproceedings{paperbot5182,
  title = {MAP-Coverage: A Novel Coverage Criterion for Testing Thread-Safe Classes},
  author = {Zan Wang and Yingquan Zhao and Shuang Liu and Jun Sun and Xiang Chen and Huarui Lin},
  booktitle = {ASE},
  year = {2019},
  doi = {10.1109/ase.2019.00073}
}