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

借呗借呗

The Move Borrow Checker

Sam Blackshear, John Mitchell, Todd Nowacki, Shaz Qadeer

摘要:

Move语言通过值语义和引用语义的混合为数字资产编程提供了抽象。确保具有访问共享、可变全局分类账的引用的程序的内存安全是困难的,但对于Move所针对的用例来说是必不可少的。该语言满足了这一挑战,一个新的内存模型和一个模块化的,程序内静态引用安全分析,利用内存的关键属性。该分析通过作为加载时字节码验证的一部分运行,确保所有Move程序(包括链接不可信代码的程序)中没有内存安全违规,类似于JVM [12]和JVM [15]。我们形式化的静态分析,并证明它享有三个理想的属性:没有悬挂引用,引用不可变的引用透明,没有内存泄漏。

英文摘要:

The Move language provides abstractions for programming with digital assets via a mix of value semantics and reference semantics. Ensuring memory safety in programs with references that access a shared, mutable global ledger is difficult, yet essential for the use-cases targeted by Move. The language meets this challenge with a novel memory model and a modular, intraprocedural static reference safety analysis that leverages key properties of the memory. The analysis ensures the absence of memory safety violations in all Move programs (including ones that link against untrusted code) by running as part of a load-time bytecode verification pass similar to the JVM [12] and CLR [15]. We formalize the static analysis and prove that it enjoys three desirable properties: absence of dangling references, referential transparency for immutable references, and absence of memory leaks.

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

↑