当前位置: X-MOL 学术arXiv.cs.PL › 论文详情
Our official English website, www.x-mol.net, welcomes your feedback! (Note: you will need to create a separate account there.)
Behavioural Types for Memory and Method Safety in a Core Object-Oriented Language
arXiv - CS - Programming Languages Pub Date : 2020-02-28 , DOI: arxiv-2002.12793
Mario Bravetti, Adrian Francalanza, Iaroslav Golovanov, Hans H\"uttel, Mathias Steen Jakobsen, Mikkel Klinke Kettunen, and Ant\'onio Ravara

We present a type-based analysis ensuring memory safety and object protocol completion in the Java-like language Mungo. Objects are annotated with usages, typestates-like specifications of the admissible sequences of method calls. The analysis entwines usage checking, controlling the order in which methods are called, with a static check determining whether references may contain null values. The analysis prevents null pointer dereferencing and memory leaks and ensures that the intended usage protocol of every object is respected and completed. The type system has been implemented in the form of a type checker.

中文翻译:

核心面向对象语言中内存和方法安全的行为类型

我们提出了一种基于类型的分析,可确保类 Java 语言 Mungo 中的内存安全和对象协议完成。对象用用法、类似类型状态的方法调用序列的规范进行注释。该分析将使用检查(控制调用方法的顺序)与静态检查结合在一起,以确定引用是否可能包含空值。该分析可防止空指针取消引用和内存泄漏,并确保遵守和完成每个对象的预期使用协议。类型系统已以类型检查器的形式实现。
更新日期:2020-03-02
down
wechat
bug