Safe manual memory management in Cyclone
Title | Safe manual memory management in Cyclone |
Publication Type | Journal Articles |
Year of Publication | 2006 |
Authors | Swamy N, Hicks MW, Morrisett G, Grossman D, Jim T |
Journal | Science of Computer Programming |
Volume | 62 |
Issue | 2 |
Pagination | 122 - 144 |
Date Published | 2006/10/01/ |
ISBN Number | 0167-6423 |
Keywords | cyclone, 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. |
URL | http://www.sciencedirect.com/science/article/pii/S0167642306000785 |
DOI | 10.1016/j.scico.2006.02.003 |