Safety Guarantees from Explicit Resource Management

  • David Aspinall
  • Patrick Maier
  • Ian Stark
Conference paper

DOI: 10.1007/978-3-540-92188-2_3

Part of the Lecture Notes in Computer Science book series (LNCS, volume 5382)
Cite this paper as:
Aspinall D., Maier P., Stark I. (2008) Safety Guarantees from Explicit Resource Management. In: de Boer F.S., Bonsangue M.M., Graf S., de Roever WP. (eds) Formal Methods for Components and Objects. FMCO 2007. Lecture Notes in Computer Science, vol 5382. Springer, Berlin, Heidelberg

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.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag Berlin Heidelberg 2008

Authors and Affiliations

  • David Aspinall
    • 1
  • Patrick Maier
    • 1
  • Ian Stark
    • 1
  1. 1.Laboratory for Foundations of Computer Science School of InformaticsThe University of EdinburghScotland

Personalised recommendations