Heap fragmentation (Was: Debugging "Leaks" With Boehm-GC)

Tom Tromey tromey@redhat.com
Tue Jan 17 17:40:00 GMT 2006


>>>>> "Martin" == Martin Egholm Nielsen <martin@egholm-nielsen.dk> writes:

>> You will need to build without NO_DEBUGGING, since that also prevents
>> GC_dump from being defined.

Martin> I hope it's enough to remove from the Makefile (and possibly
Martin> boehm-cflags) and do "make clean && make && make install", and then
Martin> redmake libgcj... That's what I'm doing now...

Hmm, does it appear in the Makefile?  In the gcc tree at least, it is
set in configure.ac:

if test -n "${with_cross_host}"; then
   AC_DEFINE(NO_SIGSET,1,[use empty GC_disable_signals and GC_enable_signals])
   AC_DEFINE(NO_DEBUGGING,1,[removes GC_dump])
fi


You could edit the generated headers and rebuild; that ought to do it.
Also, as you noted, you'll have to relink and reinstall libgcj; the GC
is built as a convenience library.

Tom



More information about the Java mailing list