Integrated Hardware Garbage Collection

被引:0
|
作者
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
相关论文
共 50 条
  • [1] CONCURRENT GARBAGE COLLECTION ON STOCK HARDWARE
    NORTH, SC
    REPPY, JH
    [J]. LECTURE NOTES IN COMPUTER SCIENCE, 1987, 274 : 113 - 133
  • [2] A Hardware Accelerator for Tracing Garbage Collection
    Maas, Martin
    Asanovic, Krste
    Kubiatowicz, John
    [J]. 2018 ACM/IEEE 45TH ANNUAL INTERNATIONAL SYMPOSIUM ON COMPUTER ARCHITECTURE (ISCA), 2018, : 138 - 151
  • [3] A Hardware Accelerator for Tracing Garbage Collection
    Maas, Martin
    Asanovic, Krste
    Kubiatowicz, John
    [J]. IEEE MICRO, 2019, 39 (03) : 38 - 46
  • [4] Hardware Accelerated Marking for Mark & Sweep Garbage Collection
    Kawamura, Shinji
    Tsumura, Tomoaki
    [J]. IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2018, E101D (04): : 1107 - 1115
  • [5] Exploring Garbage Collection with Haswell Hardware Transactional Memory
    Ritson, Carl G.
    Ugawa, Tomoharu
    Jones, Richard E.
    [J]. ACM SIGPLAN NOTICES, 2014, 49 (11) : 105 - 115
  • [6] Concurrent garbage collection using hardware-assisted profiling
    Heil, TH
    Smith, JE
    [J]. ACM SIGPLAN NOTICES, 2001, 36 (01) : 80 - 93
  • [7] Capability Boehm: Challenges and Opportunities for Garbage Collection with Capability Hardware
    Jacob, Dejice
    Singer, Jeremy
    [J]. PROCEEDINGS OF THE 18TH ACM SIGPLAN/SIGOPS INTERNATIONAL CONFERENCE ON VIRTUAL EXECUTION ENVIRONMENTS, VEE 2022, 2022, : 81 - 87
  • [8] Hardware-Assisted Middleware: Acceleration of Garbage Collection Operations
    Tang, Jie
    Liu, Shaoshan
    Gu, Zhimin
    Li, Xiao-Feng
    Gaudiot, Jean-Luc
    [J]. 21ST IEEE INTERNATIONAL CONFERENCE ON APPLICATION-SPECIFIC SYSTEMS, ARCHITECTURES AND PROCESSORS, 2010,
  • [9] FastCollect: Offloading Generational Garbage Collection to Integrated GPU
    Abhinav
    Nasre, Rupesh
    [J]. 2016 INTERNATIONAL CONFERENCE ON COMPILERS, ARCHITECTURE AND SYNTHESIS FOR EMBEDDED SYSTEMS (CASES), 2016,
  • [10] Scalable hardware-algorithm for mark-sweep garbage collection
    Srisa-an, W
    Lo, CTD
    Chang, JM
    [J]. PROCEEDINGS OF THE 26TH EUROMICRO CONFERENCE, VOLS I AND II, 2000, : 274 - 281