< prev index next >
src/share/vm/gc/shared/referenceProcessor.cpp
Print this page
*** 35,44 ****
--- 35,45 ----
#include "memory/allocation.hpp"
#include "memory/resourceArea.hpp"
#include "oops/oop.inline.hpp"
#include "runtime/java.hpp"
#include "runtime/jniHandles.hpp"
+ #include "runtime/heapMonitoring.hpp"
ReferencePolicy* ReferenceProcessor::_always_clear_soft_ref_policy = NULL;
ReferencePolicy* ReferenceProcessor::_default_soft_ref_policy = NULL;
jlong ReferenceProcessor::_soft_ref_timestamp_clock = 0;
*** 255,264 ****
--- 256,266 ----
task_executor->set_single_threaded_mode();
}
process_phaseJNI(is_alive, keep_alive, complete_gc);
}
+ HeapMonitoring::do_weak_oops(task_executor, is_alive, keep_alive, complete_gc);
log_debug(gc, ref)("Ref Counts: Soft: " SIZE_FORMAT " Weak: " SIZE_FORMAT " Final: " SIZE_FORMAT " Phantom: " SIZE_FORMAT,
stats.soft_count(), stats.weak_count(), stats.final_count(), stats.phantom_count());
log_develop_trace(gc, ref)("JNI Weak Reference count: " SIZE_FORMAT, count_jni_refs());
return stats;
< prev index next >