2e575d1e0b
PR: 21774 Submitted by: Mikhail Teterin <mi@monsta.privatelabs.com> maintainer is unreachable, temporarily? Recipient address: mmcg@cs.monash.edu.au Reason: Remote SMTP server has rejected address Diagnostic code: smtp;550 <mmcg@cs.monash.edu.au>... User unknown Remote system: dns;mail2.csse.monash.edu.au (TCP|130.194.1.8|4557|130.194.226.190|25)
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
The Boehm-Weiser garbage collection package, for C and C++ -
|
|
garbage collection and memory leak detection libraries.
|
|
|
|
A garbage collector is something which automatically frees malloc'd
|
|
memory for you by working out what parts of memory your program
|
|
no longer has pointers to. As a result, garbage collectors can also
|
|
inform you of memory leaks (if they find memory they can free, it means
|
|
you have lost all of your pointers to it, but you didn't free it).
|
|
|
|
This package has two libraries and some include files:
|
|
libgc.a - a garbage collection library, replaces malloc/free/new/delete/etc
|
|
with versions that do automatic garbage collection
|
|
libleak.a - a leak detection library, which is just libgc.a compiled with
|
|
different switches.
|
|
|
|
C programs may be linked against either of these, and should run (with
|
|
GC or leak detection) without change. C++ programs must include a header
|
|
to use garbage collection, though leak detection should work without
|
|
such source code modifications. See the man page and header files.
|
|
|
|
-- Mike McGaughey <mmcg@cs.monash.edu.au>
|
|
ps: garbage collection is addictive.
|
|
|
|
WWW: http://www.hpl.hp.com/personal/Hans_Boehm/gc/
|