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 metadatas

https://hal.inria.fr/hal-03102375
Contributor : Mario Bravetti <>
Submitted on : Thursday, January 7, 2021 - 3:13:23 PM
Last modification on : Friday, January 8, 2021 - 3:37:19 AM

File

APLAS2020.pdf
Files produced by the author(s)

Identifiers

  • HAL Id : hal-03102375, version 1

Collections

Citation

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⟩

Share

Metrics

Record views

9

Files downloads

28