< prev index next >
src/share/vm/gc/cms/compactibleFreeListSpace.cpp
Print this page
*** 30,39 ****
--- 30,40 ----
#include "gc/shared/blockOffsetTable.inline.hpp"
#include "gc/shared/collectedHeap.inline.hpp"
#include "gc/shared/genCollectedHeap.hpp"
#include "gc/shared/space.inline.hpp"
#include "gc/shared/spaceDecorator.hpp"
+ #include "logging/logStream.inline.hpp"
#include "memory/allocation.inline.hpp"
#include "memory/resourceArea.hpp"
#include "memory/universe.inline.hpp"
#include "oops/oop.inline.hpp"
#include "runtime/globals.hpp"
*** 503,516 ****
Log(gc, freelist, stats) log;
if (!log.is_debug()) {
return;
}
log.debug("%s", title);
! _dictionary->report_statistics(log.debug_stream());
if (log.is_trace()) {
! ResourceMark rm;
! reportIndexedFreeListStatistics(log.trace_stream());
size_t total_size = totalSizeInIndexedFreeLists() +
_dictionary->total_chunk_size(DEBUG_ONLY(freelistLock()));
log.trace(" free=" SIZE_FORMAT " frag=%1.4f", total_size, flsFrag());
}
}
--- 504,520 ----
Log(gc, freelist, stats) log;
if (!log.is_debug()) {
return;
}
log.debug("%s", title);
!
! LogStream out(log.debug());
! _dictionary->report_statistics(&out);
!
if (log.is_trace()) {
! LogStream trace_out(log.trace());
! reportIndexedFreeListStatistics(&trace_out);
size_t total_size = totalSizeInIndexedFreeLists() +
_dictionary->total_chunk_size(DEBUG_ONLY(freelistLock()));
log.trace(" free=" SIZE_FORMAT " frag=%1.4f", total_size, flsFrag());
}
}
< prev index next >