ComputingComputer ScienceAlgorithmsCompilersProgramming LanguagesAbstract Syntax TreesCompiler ConstructionControl-flow AnalysisData-flow AnalysisGarbage CollectionIntermediate RepresentationCompiler DesignCompiler SupportConservative Garbage CollectionIntermediate Code GenerationPointer AnalysisPointer ArithmeticPointer Arithmetic ErrorsPointer Safety
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 (gcc), and give some measurements of program slow down.
20
Mostly parallel garbage collection
Hans‐J. Boehm, Alan Demers, Scott Shenker · 1991 · 206 citations · Full text
Space efficient conservative garbage collection
Hans‐Juergen Boehm · 1993 · 173 citations
Compacting garbage collection with ambiguous roots
Joel F. Bartlett · ACM SIGPLAN Lisp Pointers · 1988 · 111 citations