Integrated Hardware Garbage Collection

被引:2
作者
Garcia, Andres Amaya [1 ]
May, David [1 ]
Nutting, Ed [1 ]
机构
[1] Univ Bristol, 75 Woodland Rd, Bristol BS8 1UB, Avon, England
基金
英国工程与自然科学研究理事会;
关键词
Garbage collection; memory management; memory; real-time; reliability; static analysis; PERFORMANCE;
D O I
10.1145/3450147
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Garbage collected programming languages, such as Python and C#, have accelerated software development. These modern languages increase productivity and software reliability as they provide high-level data representation and control structures. Modern languages are widely used in software development for mobile, desktop, and server devices, but their adoption is limited in real-time embedded systems. There is clear interest in supporting modern languages in embedded devices as emerging markets, like the Internet of Things, demand ever smarter and more reliable products. Multiple commercial and open-source projects, such as Zerynth and MicroPython, are attempting to provide support. But these projects rely on software garbage collectors that impose high overheads and introduce unpredictable pauses, preventing their use in many embedded applications. These limitations arise from the unsuitability of conventional processors for performing efficient, predictable garbage collection. We propose the Integrated Hardware Garbage Collector (IHGC); a garbage collector tightly coupled with the processor that runs continuously in the background. Further, we introduce a static analysis technique to guarantee that real-time programs are never paused by the collector. Our design allocates a memory cycle to the collector when the processor is not using the memory. The IHGC achieves this by careful division of collection work into single-memory-access steps that are interleaved with the processor's memory accesses. As a result, our collector eliminates run-time overheads and enables real-time program analysis. The principles behind the IHGC can be used in conjunction with existing architectures. For example, we simulated the IHGC alongside the ARMv6-M architecture. Compared to a conventional processor, our experiments indicate that the IHGC offers 1.5-7 times better performance for programs that rely on garbage collection. The IHGC delivers the benefits of garbage-collected languages with real-time performance but without the complexity and overheads inherent in software collectors.
引用
收藏
页数:25
相关论文
共 64 条
[1]  
[Anonymous], 2009, Cortex-M0 Technical Reference Manual
[2]  
[Anonymous], 2015, JDN
[3]  
[Anonymous], STM32 32-bit Arm Cortex MCUs
[4]  
[Anonymous], 1998, THESIS LUND U
[5]  
ARM Limited, 2019, mbed TLS
[6]   Controlling fragmentation and space consumption in the metronome, a real-time garbage collector for Java']Java [J].
Bacon, DF ;
Cheng, P ;
Rajan, VT .
ACM SIGPLAN NOTICES, 2003, 38 (07) :81-92
[7]   A real-time garbage collector with low overhead and consistent utilization [J].
Bacon, DF ;
Cheng, P ;
Rajan, VT .
ACM SIGPLAN NOTICES, 2003, 38 (01) :285-298
[8]  
BERKELAAR M, 2005, LP SOLVE VERSION 5 5
[9]  
Binkert Nathan, 2011, Computer Architecture News, V39, P1, DOI 10.1145/2024716.2024718
[10]  
Bosch R., 2005, Search Methodologies