Experience with safe manual memory-management in cyclone
Title | Experience with safe manual memory-management in cyclone |
Publication Type | Conference Papers |
Year of Publication | 2004 |
Authors | Hicks MW, Morrisett G, Grossman D, Jim T |
Conference Name | Proceedings of the 4th international symposium on Memory management |
Date Published | 2004/// |
Publisher | ACM |
Conference Location | New York, NY, USA |
ISBN Number | 1-58113-945-4 |
Keywords | cyclone, Memory management, memory safety, regions, unique pointers |
Abstract | The goal of the Cyclone project is to investigate type safety for low-level languages such as C. Our most difficult challenge has been providing programmers control over memory management while retaining type safety. This paper reports on our experience trying to integrate and effectively use two previously proposed, type-safe memory management mechanisms: statically-scoped regions and unique 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 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://doi.acm.org/10.1145/1029873.1029883 |
DOI | 10.1145/1029873.1029883 |