Safety Guarantees from Explicit Resource Management

David Aspinall, Patrick Maier, Ian Stark

Research output: Chapter in Book/Report/Conference proceedingConference contribution

2 Citations (Scopus)

Abstract

We present a language and a program analysis that certifies the safe use of flexible resource management idioms, in particular advance reservation or "block booking" of costly resources. This builds on previous work with *resource managers* that carry out runtime safety checks, by showing how to assist these with compile-time checks. We give a small ANF-style language with explicit resource managers, and introduce a type and effect system that captures their runtime behaviour. In this setting, we identify a notion of *dynamic safety* for running code, and show that dynamically safe code may be executed without runtime checks. We show a similar *static safety* property for type-safe code, and prove that static safety implies dynamic safety. The consequence is that typechecked code can be executed without runtime instrumentation, and is guaranteed to make only appropriate use of resources.
Original languageEnglish
Title of host publicationFormal Methods for Components and Objects
Subtitle of host publication6th International Symposium, FMCO 2007; Amsterdam, The Netherlands, October 24-26, 2007; Revised Lectures
PublisherSpringer
Pages52-71
Number of pages20
Volume5382
DOIs
Publication statusPublished - 2008
Event6th International Symposium on Formal Methods for Components and Objects - Amsterdam, Netherlands
Duration: 24 Oct 200726 Oct 2007

Publication series

NameLecture Notes in Computer Science
PublisherSpringer

Conference

Conference6th International Symposium on Formal Methods for Components and Objects
Abbreviated titleFMCO 2007
Country/TerritoryNetherlands
CityAmsterdam
Period24/10/0726/10/07

Fingerprint

Dive into the research topics of 'Safety Guarantees from Explicit Resource Management'. Together they form a unique fingerprint.

Cite this