arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1608.05676cs.PLcs.LO
收藏

自由表内存分配器分析的层次形状抽象

Hierarchical Shape Abstraction for Analysis of Free-List Memory Allocators

Bin Fang, Mihaela Sighireanu

摘要:

我们提出了一个分层的抽象域的分析自由列表内存分配器,跟踪形状和数值属性的堆和自由列表。我们的域是基于分离逻辑扩展的谓词,捕捉堆列表和自由列表的形状的指针算术约束。使用分层合成运算符组合这些谓词,以指定堆列表与自由列表的重叠。除了表现力之外,这个操作符还可以导致抽象值的组合和紧凑表示,并简化抽象域的实现。形状约束与整数数组上的数值约束相结合,以跟踪有关分配策略的属性(最佳拟合、首次拟合等)。这些属性超出了现有分析器的范围。我们实现了这个域,我们证明了它的有效性的几个实现的自由列表分配器。

英文摘要:

We propose a hierarchical abstract domain for the analysis of free-list memory allocators that tracks shape and numerical properties about both the heap and the free lists. Our domain is based on Separation Logic extended with predicates that capture the pointer arithmetics constraints for the heap-list and the shape of the free-list. These predicates are combined using a hierarchical composition operator to specify the overlapping of the heap-list by the free-list. In addition to expressiveness, this operator leads to a compositional and compact representation of abstract values and simplifies the implementation of the abstract domain. The shape constraints are combined with numerical constraints over integer arrays to track properties about the allocation policies (best-fit, first-fit, etc). Such properties are out of the scope of the existing analyzers. We implemented this domain and we show its effectiveness on several implementations of free-list allocators.

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

↑