ACM Home Page
Please provide us with feedback. Feedback
A direct approach to control-flow sensitive region-based memory management
Full text PdfPdf (205 KB)
Source International Conference on Principles and Practice of Declarative Programming archive
Proceedings of the 3rd ACM SIGPLAN international conference on Principles and practice of declarative programming table of contents
Florence, Italy
Pages: 175 - 186  
Year of Publication: 2001
ISBN:1-58113-388-X
Authors
Fritz Henglein  The IT University of Copenhagen, DENMARK
Henning Makholm  University of Copenhagen, DENMARK
Henning Niss  University of Copenhagen, DENMARK
Sponsor
SIGPLAN: ACM Special Interest Group on Programming Languages
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 2,   Downloads (12 Months): 32,   Citation Count: 11
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/773184.773203
What is a DOI?

ABSTRACT

Region-based memory management can be used to control dynamic memory allocations and deallocations safely and efficiently. Existing (direct-style) region systems that statically guarantee region safety---no dereferencing of dangling pointers---are based on refinements of Tofte and Talpin's seminal work on region inference for managing heap memory in stacks of regions.We present a unified Floyd-Hoare Logic inspired region type system for reasoning about and inferring region-based memory management, using a sublanguage of imperative region commands. Our system expresses and performs control-sensitive region management without requiring a stack discipline for allocating and deallocating regions. Furthermore, it captures storage mode analysis and late allocation/early deallocation analysis in a single, expressive, unified logical framework. Explicit region aliasing in combination with reference-counted regions provides flexible, context-sensitive early memory deallocation and simultaneously dispenses with the need for an integrated region alias analysis.In this paper we present the design of our region type system, illustrate its practical expressiveness, compare it to existing region analyses, demonstrate how this eliminates the need for previously required source code rewritings for good memory performance, and describe automatic inference of region commands that give consistently better (or at least equally good) memory performance as existing inference techniques.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

1
2
3
4
 
5
 
6
F. Henglein, H. Makholm, and H. Niss. A direct approach to control-flow sensitive region-based memory management. Technical report, 2001. hhttp://www.diku.dk/~hniss/rbmm/ppdp-ext.ps.gzi.
7
8
 
9
J. T. Schwartz. Optimization of very high level languages (parts I and II). Comput. Lang., 1(2 & 3):161--194, 197--218, 1975.
10
 
11
 
12
J.-P. Talpin and P. Jouvelot. Polymorphic type, region, and effect inference. J. Func. Prog., 2(3):245--271, 1992.
 
13
M. Tofte, L. Birkedal, M. Elsman, N. Hallenberg, T. H. Olesen, P. Sestoft, and P. Bertelsen. Programming with regions in the ML Kit (for version 3). Technical Report DIKU-TR-98/25, Department of Computer Science, University of Copenhagen (DIKU), 1998.
 
14
M. Tofte and N. Hallenberg. Region-based memory management in perspective. In F. Henglein, J. Hughes, H. Makholm, and H. Niss, editors, Workshop on Semantics, Program Analysis and Computing Environments for Memory Management (SPACE), pages 23--30, 2001.
15
 
16
17
18

CITED BY  11

Collaborative Colleagues:
Fritz Henglein: colleagues
Henning Makholm: colleagues
Henning Niss: colleagues