arXiv · 2002.12793
Behavioural Types for Memory and Method Safety in a Core Object-Oriented Language
Abstract
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.
Explore related subjects
Keep this discovery
Mario Bravetti, Adrian Francalanza, Iaroslav Golovanov, Hans Hüttel, Mathias Steen Jakobsen, Mikkel Klinke Kettunen, António Ravara. 2020-02-28. Behavioural Types for Memory and Method Safety in a Core Object-Oriented Language. https://arxiv.org/abs/2002.12793
Cite the original work for its findings. Save a collection to share your selection of sources.