SGC: A Garbage Collector for C++ programs
SGC (Schiermers Garbage Collector) is an experimental garbage collector
for C++ programs. SGC is currently operational under Linux/x86 and
Alpha/OSF1, but requires GNU c++.
SGC coexists peacefully with the built-in memory mamagement system.
SGC offers four additional ways of allocating memory:
- new(node). Allocates memory possibly containing pointers.
- new(leaf). Allocates memory that cannot possibly contain pointers.
- new(fixedNode). As new(node) but faster if the size of the
allocated object can be deduced by the compiler.
- new(fixedLeaf). As new(leaf) but faster if the size of the
allocated object can be deduced by the compiler.
You can read a more detailed presentation of SGC and of the
runtime cost of using it in
the main header file, sgc.h.
A short note on some preliminary experiments
(benchmarking)
is also available.
Finn Schiermer Andersen
Last modified: Wed Sep 29 12:23:52 METDST 1999