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

Martin Egholm Nielsen martin@egholm-nielsen.dk
Mon Jan 16 01:30:00 GMT 2006


>> A call to GC_dump() or setting the GC_DUMP_REGULARLY environment
>> variable should tell you what's in the heap.  
> No, do you recall:
> http://gcc.gnu.org/ml/java/2005-12/msg00083.html
> setting GC_DUMP_REGULARLY doesn't affect anything - what should happen?

Oh, I found this:

#   ifndef NO_DEBUGGING
       if (0 != GETENV("GC_DUMP_REGULARLY")) {
         GC_dump_regularly = 1;
       }
#   endif

So I guess NO_DEBUGGING must be defined in my case... Hence, a bit late 
to do it that way...

Then I should somehow find a way to set "GC_dump_regularly" - but 
there's no nice setter method for that one(?)...
Any ideas?
Recompile without NO_DEBUGGING (where is actually the correct place to 
remove this - some Makefile.*?)

// Martin



More information about the Java mailing list