Garbage-Collection Safety for Region-Based Type-Polymorphic Programs
Martin Elsman
摘要
Region inference offers a mechanism to reduce (and sometimes entirely remove) the need for reference-tracing garbage collection by inferring where to insert allocation and deallocation instructions in a program at compile time. When the mechanism is combined with techniques for reference-tracing garbage collection, which is helpful in general to support programs with very dynamic memory behaviours, it turns out that region-inference is complementary to adding generations to a reference-tracing collector. However, region-inference and the associated region-representation analyses that make such a memory management strategy perform well in practice are complex, both from a theoretical point-of-view and from an implementation point-of-view. In this paper, we demonstrate a soundness problem with existing theoretical developments, which have to do with ensuring that, even for higher-order polymorphic programs, no dangling-pointers appear during a reference-tracing collection. This problem has materialised as a practical soundness problem in a real implementation based on region inference. As a solution, we present a modified, yet simple, region type-system that captures garbage-collection effects, even for polymorphic higher-order code, and outline how region inference and region-representation analyses are adapted to the new type system. The new type system allows for associating simpler region type-schemes with functions, compared to original work, makes it possible to combine region-based memory management with partly tag-free reference-tracing (and generational) garbage-collection, and repairs previously derived work that is based on the erroneous published results.
问问这篇 Paper
智能体会读完全文。
Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。
引用它的顶会 Paper2
- Explicit Effects and Effect Constraints in ReMLMartin ElsmanPOPL 2024 · 被引用 4 次
- Parallelism in a Region Inference ContextMartin Elsman, Troels HenriksenPLDI 2023 · 被引用 2 次
相关 Paper
- CRAG: Can 3D Generative Models Help 3D Assembly?Zeyu Jiang, Sihang Li, Siqi Tan, Chenyang Xu 等ICML 2026
- POSEFusion: Pose-Guided Selective Fusion for Single-View Human Volumetric CaptureZhe Li, Tao Yu, Zerong Zheng, Kaiwen Guo 等CVPR 2021
- Amodal Scene Analysis via Holistic Occlusion Relation Inference and Generative Mask CompletionBowen Zhang, Qing Liu, Jianming Zhang, Yilin Wang 等AAAI 2024 · 被引用 4 次
- Unsupervised 3D Structure Inference from Category-Specific Image CollectionsWeikang Wang, Dongliang Cao, Florian BernardCVPR 2024
- HOSIG: Full-Body Human-Object-Scene Interaction Generation with Hierarchical Scene PerceptionWei Yao, Yunlian Sun, Hongwen Zhang, Yebin Liu 等AAAI 2026 · 被引用 4 次
