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 条
[21]   A Verified Generational Garbage Collector for CakeML [J].
Adam Sandberg Ericsson ;
Magnus O. Myreen ;
Johannes Åman Pohjola .
Journal of Automated Reasoning, 2019, 63 :463-488
[22]   Laccases: garbage-collector mushrooms [J].
Dupin, L .
BIOFUTUR, 2003, (230) :31-34
[23]   A novel design of a generational garbage collector [J].
Zaman, WU ;
Ahmad, SA ;
Abbas, A ;
Qadeer, A .
ISCON 2002: IEEE STUDENTS CONFERENCE ON EMERGING TECHNOLOGIES, PROCEEDINGS, 2002, :85-88
[24]   A Verified Generational Garbage Collector for CakeML [J].
Ericsson, Adam Sandberg ;
Myreen, Magnus O. ;
Pohjola, Johannes Aman .
INTERACTIVE THEOREM PROVING (ITP 2017), 2017, 10499 :444-461
[25]   A DISTRIBUTED GARBAGE COLLECTOR FOR ACTIVE OBJECTS [J].
PUAUT, I .
SIGPLAN NOTICES, 1994, 29 (10) :113-128
[26]   Development of Autonomous Garbage Collector Robot [J].
Jha, Anukriti ;
Singh, Anshuman ;
Kerketta, Roshan ;
Prasad, Deepak ;
Neelam, Kumari ;
Nath, Vijay .
PROCEEDINGS OF THE THIRD INTERNATIONAL CONFERENCE ON MICROELECTRONICS, COMPUTING AND COMMUNICATION SYSTEMS, MCCS 2018, 2019, 556 :567-576
[27]   Reducing garbage collector cache misses [J].
Boehm, Hans-J. .
HP Laboratories Technical Report, 2000, (99)
[28]   Formal Verification of an Incremental Garbage Collector [J].
Lab. d'Info. Fond. Marseille, CMI, 39 rue Joliot-Curie, F-13453, Marseille, France ;
不详 .
1600, 815-833 (December 2003)
[29]   A Mechanically Verified Garbage Collector for OCamlA Mechanically Verified Garbage Collector for OCamlS. Shamsu et al. [J].
Sheera Shamsu ;
Dipesh Kafle ;
Dhruv Maroo ;
Kartik Nagar ;
Karthikeyan Bhargavan ;
KC Sivaramakrishnan .
Journal of Automated Reasoning, 2025, 69 (2)
[30]   Aqua garbage collector: utilizing AI and IoT for efficient underwater garbage classification [J].
Yam, Bonnie ;
Zhao, Ruochen ;
Elshakankiri, Maher .
CLUSTER COMPUTING-THE JOURNAL OF NETWORKS SOFTWARE TOOLS AND APPLICATIONS, 2025, 28 (06)