Skip to Main content Skip to Navigation
Conference papers

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. It prevents null pointer dereferencing in a typestate-aware manner and memory leaks and ensures that the intended usage protocol of every object is respected and completed. The type system admits an algorithm that infers the most general usage with respect to a simulation preorder. The type system is implemented in the form of a type checker and a usage inference tool.
Complete list of metadata
Contributor : Mario Bravetti Connect in order to contact the contributor
Submitted on : Thursday, January 7, 2021 - 3:13:23 PM
Last modification on : Thursday, January 20, 2022 - 5:26:45 PM
Long-term archiving on: : Thursday, April 8, 2021 - 7:21:34 PM


Files produced by the author(s)


  • HAL Id : hal-03102375, version 1



Mario Bravetti, Adrian Francalanza, Iaroslav Golovanov, Hans Hüttel, Mathias Jakobsen, et al.. Behavioural Types for Memory and Method Safety in a Core Object-Oriented Language. APLAS 2020 - 18th Asian Symposium on Programming Languages and Systems, Nov 2020, Fukuoka / Virtual, Japan. ⟨hal-03102375⟩



Les métriques sont temporairement indisponibles