Simple garbage-collector-safety

被引:6
|
作者
Boehm, HJ
机构
关键词
D O I
10.1145/249069.231394
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
A conservative garbage collector can typically be used with conventionally compiled programs written in C or C+ +. But two safety issues must be considered. First, the source code must not hide pointers from the garbage collector. This primarily requires stricter adherence to existing restrictions in the language definition. Second, we must ensure that the compiler will not perform transformations that invalidate this requirement. We argue that the same technique can be used to address both issues. We present an algorithm for annotating source or intermediate code to either check the validity of pointer arithmetic in the source, or to guarantee that under minimal, clearly defined assumptions about the compiler, the optimizer cannot ''disguise'' pointers. We discuss an implementation based on a preprocessor for the GNU C compiler (gee), and give some measurements of program slowdown.
引用
收藏
页码:89 / 98
页数:10
相关论文
共 50 条
  • [1] Performance Comparative Analysis on Garbage First Garbage Collector and Z Garbage Collector
    Zhang, Jiayi
    2021 IEEE 3rd International Conference on Frontiers Technology of Information and Computer, ICFTIC 2021, 2021, : 733 - 740
  • [2] A simple distributed garbage collector for distributed real-time Java
    Pablo Basanta-Val
    Marisol García-Valls
    The Journal of Supercomputing, 2014, 70 : 1588 - 1616
  • [3] Garbage collector in Paris
    Le Lay, Stephane
    TRAVAIL GENRE ET SOCIETES, 2015, (33): : 105 - +
  • [4] Complementary garbage collector
    Matsui, S
    Tanaka, Y
    Maeda, A
    Nakanishi, M
    MEMORY MANAGEMENT, 1995, 986 : 163 - 177
  • [5] CALCULATING A GARBAGE COLLECTOR
    BERGER, U
    MEIXNER, W
    MOLLER, B
    LECTURE NOTES IN COMPUTER SCIENCE, 1991, 544 : 137 - 192
  • [6] A simple distributed garbage collector for distributed real-time Java']Java
    Basanta-Val, Pablo
    Garcia-Valls, Marisol
    JOURNAL OF SUPERCOMPUTING, 2014, 70 (03): : 1588 - 1616
  • [7] GENERALIZED COMPACTIFYING GARBAGE COLLECTOR
    WEGBREIT, B
    COMPUTER JOURNAL, 1972, 15 (03): : 204 - &
  • [8] Visualising the train garbage collector
    Printezis, T
    Garthwaite, A
    ACM SIGPLAN NOTICES, 2003, 38 (02) : 157 - 170
  • [9] A GARBAGE COLLECTOR TIDIES ITSELF
    TRACY, EJ
    FORTUNE, 1984, 109 (05) : 60 - 60
  • [10] ANOTHER COMPACTING GARBAGE COLLECTOR
    MORRIS, FL
    INFORMATION PROCESSING LETTERS, 1982, 15 (04) : 139 - 142