Reconsidering custom memory allocation
The DOI matches its Crossref record; 15 of the 15 references it cites were found in a registry or an index.
Abstract
Programmers hoping to achieve performance improvements often use custom memory allocators. This in-depth study examines eight applications that use custom allocators. Surprisingly, for six of these applications, a state-of-the-art general-purpose allocator (the Lea allocator) performs as well as or better than the custom allocators. The two exceptions use regions, which deliver higher performance (improvements of up to 44%). Regions also reduce programmer burden and eliminate a source of memory leaks. However, we show that the inability of programmers to free individual objects within regions can lead to a substantial increase in memory consumption. Worse, this limitation precludes the use of regions for common programming idioms, reducing their usefulness.We present a generalization of general-purpose and region-based allocators that we call reaps. Reaps are a combination of regions and heaps, providing a full range of region semantics with the addition of individual object deletion. We show that our implementation of reaps provides high performance, outperforming other allocators with region-like semantics. We then use a case study to demonstrate the space advantages and software engineering benefits of reaps in practice. Our results indicate that programmers needing fast regions should use reaps, and that most programmers considering custom allocators should instead use the Lea allocator.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Stroustrup, B. (1985) · Cited by 4,409
Advanced Compiler Design and Implementation
Muchnick, S. S. (1997) · Cited by 2,986
The real-time specification for Java
Bollella, G., & Gosling, J. (2000) · Computer · doi:10.1109/2.846318 · Cited by 988 · cited 1×
“Regions have also been incorporated into Real-Time Java to allow real-time guarantees that cannot be provided by any existing garbage collector algorithm or implementation [5].”
MethodThe C++ programming language (2nd ed.)
Stroustrup, B. (1991) · Addison-Wesley Longman Publishing Co., Inc. eBooks · Cited by 859
The Annotated C++ Reference Manual
Ellis, M. A., & Stroustrup, B. (1990) · CERN Document Server (European Organization for Nuclear Research) · Cited by 811
Region-Based Memory Management
Tofte, M., & Talpin, J.-P. (1997) · Information and Computation · doi:10.1006/inco.1996.2613 · Cited by 615
Dynamic storage allocation: A survey and critical review
Wilson, P. R., Johnstone, M. S., Neely, M., & Boles, D. (1995) · Lecture Notes in Computer Science · doi:10.1007/3-540-60368-9_19 · Cited by 594
Region-based memory management in cyclone
Grossman, D., Morrisett, G., Jim, T., Hicks, M., Wang, Y., & Cheney, J. (2002) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/512529.512563 · Cited by 475 · cited 2×
“Following the definitions in the literature, programmers allocate objects within a region and can delete all objects in a region at once but cannot delete individual objects [14, 15, 17, 19, 30, 39].”
BackgroundCache-conscious structure layout
Chilimbi, T. M., Hill, M. D., & Larus, J. R. (1999) · Proceedings of the ACM SIGPLAN 1999 conference on Programming language design and implementation · doi:10.1145/301618.301633 · Cited by 334 · cited 1×
“We also exclude from consideration memory allocators that serve primarily as infrastructures for implementing object layout optimizations [9, 40].”
A retargetable C compiler : design and implementation
Fraser, C. W., & Hanson, D. R. (1995) · Cited by 321
Cited by
Legion: expressing locality and independence with logical regions
Bauer, M., Treichler, S., Slaughter, E., & Aiken, A. (2012) · doi:10.5555/2388996.2389086 · Cited by 357
Dedup Est Machina: Memory Deduplication as an Advanced Exploitation Vector
Bosman, E., Razavi, K., Bos, H., & Giuffrida, C. (2016) · 2016 IEEE Symposium on Security and Privacy (SP) · doi:10.1109/sp.2016.63 · Cited by 216
“nginx implements two custom memory allocators on top of the standard malloc implementation, a slab allocator and a region-based (or pool) allocator [9].”
Method
Metadata
- Authors
- Berger, E. D., Zorn, B. G., & McKinley, K. S.
- Venue
- Proceedings of the 17th ACM SIGPLAN conference on Object-oriented programming, systems, languages, and applications - OOPSLA '02
- Publisher
- ACM Press
- Published
- 2002
- Pages
- 1
- OpenAlex
- W2038897371
- Cited by
- 188
- References
- 15
- Type
- conference abstract
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Reconsidering custom memory allocation. https://app.cochat.ai/papers/10.1145/582419.582421
- The paper
- Berger, E. D., Zorn, B. G., & McKinley, K. S. (2002). Reconsidering custom memory allocation. Proceedings of the 17th ACM SIGPLAN conference on Object-oriented programming, systems, languages, and applications - OOPSLA '02. https://doi.org/10.1145/582419.582421
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.