arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1004.3808cs.PL
收藏

实用垃圾收集器的自动验证

Automated Verification of Practical Garbage Collectors

Chris Hawblitzel, Erez Petrank

摘要:

众所周知,垃圾收集器很难验证,因为它们与底层系统的交互很低,而且在图中推理可达性的难度很大。有几篇论文提出了经过验证的收集器,但要么证明是手写的,要么收集器过于简单,无法在实际应用中使用。在这项工作中,我们提出了两个机械验证的垃圾收集器,都足够实用,可用于现实世界的C#基准测试。收集器及其相关的分配器由x86汇编语言指令和宏指令组成,并带有前置条件、后置条件、不变量和断言注释。我们使用Boogie验证生成器和Z3自动定理证明器来机械地验证这个汇编语言代码。我们提供的测量比较性能的验证收集器与标准的巴托克收集器在现成的C#基准测试,证明他们的竞争力。

英文摘要:

Garbage collectors are notoriously hard to verify, due to their low-level interaction with the underlying system and the general difficulty in reasoning about reachability in graphs. Several papers have presented verified collectors, but either the proofs were hand-written or the collectors were too simplistic to use on practical applications. In this work, we present two mechanically verified garbage collectors, both practical enough to use for real-world C# benchmarks. The collectors and their associated allocators consist of x86 assembly language instructions and macro instructions, annotated with preconditions, postconditions, invariants, and assertions. We used the Boogie verification generator and the Z3 automated theorem prover to verify this assembly language code mechanically. We provide measurements comparing the performance of the verified collector with that of the standard Bartok collectors on off-the-shelf C# benchmarks, demonstrating their competitiveness.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑