计算机科学 > 程序设计语言
[提交于 2020年2月28日]
标题:Behavioural Types for Memory and Method Safety in a Core Object-Oriented Language
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Hans Hüttel[v1] 2020年2月28日 星期五 15:21:55 UTC