< prev index next >
src/share/vm/gc/shared/taskqueue.cpp
Print this page
@@ -23,10 +23,11 @@
*/
#include "precompiled.hpp"
#include "gc/shared/taskqueue.hpp"
#include "oops/oop.inline.hpp"
+#include "logging/log.hpp"
#include "runtime/atomic.inline.hpp"
#include "runtime/os.hpp"
#include "runtime/thread.inline.hpp"
#include "utilities/debug.hpp"
#include "utilities/stack.inline.hpp"
@@ -210,15 +211,12 @@
#ifdef TRACESPINNING
_total_spins++;
#endif
}
} else {
- if (PrintGCDetails && Verbose) {
- gclog_or_tty->print_cr("ParallelTaskTerminator::offer_termination() "
- "thread " PTR_FORMAT " sleeps after %u yields",
+ log_develop(gc, task)("ParallelTaskTerminator::offer_termination() thread " PTR_FORMAT " sleeps after %u yields",
p2i(Thread::current()), yield_count);
- }
yield_count = 0;
// A sleep will cause this processor to seek work on another processor's
// runqueue, if it has nothing else to run (as opposed to the yield
// which may only move the thread to the end of the this processor's
// runqueue).
@@ -238,11 +236,11 @@
}
}
#ifdef TRACESPINNING
void ParallelTaskTerminator::print_termination_counts() {
- gclog_or_tty->print_cr("ParallelTaskTerminator Total yields: %u"
+ log_trace(gc, task)("ParallelTaskTerminator Total yields: %u"
" Total spins: %u Total peeks: %u",
total_yields(),
total_spins(),
total_peeks());
}
< prev index next >