Safe manual memory management in Cyclone

TitleSafe manual memory management in Cyclone
Publication TypeJournal Articles
Year of Publication2006
AuthorsSwamy N, Hicks MW, Morrisett G, Grossman D, Jim T
JournalScience of Computer Programming
Volume62
Issue2
Pagination122 - 144
Date Published2006/10/01/
ISBN Number0167-6423
Keywordscyclone, Memory management, memory safety, Reaps, Reference counting, regions, unique pointers
Abstract

The goal of the Cyclone project is to investigate how to make a low-level C-like language safe. Our most difficult challenge has been providing programmers with control over memory management while retaining safety. This paper describes our experience trying to integrate and use effectively two previously-proposed, safe memory-management mechanisms: statically-scoped regions and tracked pointers. We found that these typing mechanisms can be combined to build alternative memory-management abstractions, such as reference counted objects and arenas with dynamic lifetimes, and thus provide a flexible basis. Our experience — porting C programs and device drivers, and building new applications for resource-constrained systems — confirms that experts can use these features to improve memory footprint and sometimes to improve throughput when used instead of, or in combination with, conservative garbage collection.

URLhttp://www.sciencedirect.com/science/article/pii/S0167642306000785
DOI10.1016/j.scico.2006.02.003