首页> 外文会议>Programming languages and systems >Fractional Ownerships for Safe Memory Deallocation
【24h】

Fractional Ownerships for Safe Memory Deallocation

机译:安全存储分配的部分所有权

获取原文
获取原文并翻译 | 示例

摘要

We propose a type system for a programming language with memory allocation/deallocation primitives, which prevents memory-related errors such as double-frees and memory leaks. The main idea is to augment pointer types with fractional ownerships, which express both capabilities and obligations to access or deallocate memory cells. By assigning an ownership to each pointer type constructor (rather than to a variable), our type system can properly reason about list/tree-manipulating programs. Furthermore, thanks to the use of fractions as ownerships, the type system admits a polynomial-time type inference algorithm, which serves as an algorithm for automatic verification of lack of memory-related errors. A prototype verifier has been implemented and tested for C programs.
机译:我们为具有内存分配/取消分配原语的编程语言提出了一种类型系统,该系统可以防止与内存相关的错误,例如两次释放和内存泄漏。主要思想是使用部分所有权来扩展指针类型,该所有权表示访问或取消分配存储单元的能力和义务。通过将所有权分配给每个指针类型构造函数(而不是变量),我们的类型系统可以适当地推理列表/树操作程序。此外,由于使用分数作为所有权,类型系统允许使用多项式时间类型推断算法,该算法可作为自动验证缺少内存相关错误的算法。原型验证程序已经实现,并已针对C程序进行了测试。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号