boehm-gc

The Boehm-Demers-Weiser conservative garbage collector can be used as a garbage collecting replacement for C malloc or C++ new. It allows you to allocate memory basically as you normally would, without explicitly deallocating memory that is no longer useful. The collector automatically recycles memory when it determines that it can no longer be otherwise accessed. A simple example of such a use is given here. The collector is also used by a number of programming language implementations that either use C as intermediate code, want to facilitate easier interoperation with C libraries, or just prefer the simple collector interface. For a more detailed description of the interface, see here. Alternatively, the garbage collector may be used as a leak detector for C or C++ programs, though that is not its primary goal. The arguments for and against conservative garbage collection in C and C++ are briefly discussed in issues.html. The beginnings of a frequently-asked-questions list are here. Empirically, this collector works with most unmodified C programs, simply by replacing malloc with GC_malloc calls, replacing realloc with GC_realloc calls, and removing free calls. Exceptions are discussed in issues.html.
Current version: 7.2

History

Effective Date Table ID Version Download URL Project URL Version URL
2022-03-31 11 7.2 download project version
2020-12-22 10 7.2 download project version
2019-01-17 9 7.2 download project version
2017-07-13 8 7.2 download project version
2015-06-25 7 7.2 download project version
2014-03-07 6 7.2 download project version
2013-09-10 5 7.2 download project version
2012-10-31 4 7.2 download project version
2012-05-01 3 7.2 download project version
2005-11-08 2 gcc-4.0.2 download project version