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.
Originalsprog | Engelsk |
---|---|
Titel | Programming Languages and Systems - 18th Asian Symposium, APLAS 2020, Proceedings |
Redaktører | Bruno C. Oliveira |
Antal sider | 20 |
Forlag | Springer |
Publikationsdato | 2020 |
Sider | 105-124 |
ISBN (Trykt) | 978-3-030-64436-9 |
ISBN (Elektronisk) | 978-3-030-64437-6 |
DOI | |
Status | Udgivet - 2020 |
Begivenhed | 18th Asian Symposium on Programming Languages and Systems, APLAS 2020 - Fukuoka, Japan Varighed: 30 nov. 2020 → 2 dec. 2020 |
Konference
Konference | 18th Asian Symposium on Programming Languages and Systems, APLAS 2020 |
---|---|
Land/Område | Japan |
By | Fukuoka |
Periode | 30/11/2020 → 02/12/2020 |
Navn | Lecture Notes in Computer Science |
---|---|
Vol/bind | 12470 |
ISSN | 0302-9743 |
Bibliografisk note
Funding Information:Work partially supported by the EU H2020 RISE programme under the Marie Sk lodowska-Curie grant agreement No. 778233 (BehAPI), the UK EPSRC grant EP/K034413/1 (ABCD), and by NOVA LINCS (UIDB/04516/2020) via FCT.
Publisher Copyright:
© 2020, Springer Nature Switzerland AG.
Copyright:
Copyright 2020 Elsevier B.V., All rights reserved.