< prev index next >
src/share/vm/gc/shared/taskqueue.cpp
Print this page
*** 23,32 ****
--- 23,33 ----
*/
#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,224 ****
#ifdef TRACESPINNING
_total_spins++;
#endif
}
} else {
! if (PrintGCDetails && Verbose) {
! gclog_or_tty->print_cr("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).
--- 211,222 ----
#ifdef TRACESPINNING
_total_spins++;
#endif
}
} else {
! 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,248 ****
}
}
#ifdef TRACESPINNING
void ParallelTaskTerminator::print_termination_counts() {
! gclog_or_tty->print_cr("ParallelTaskTerminator Total yields: %u"
" Total spins: %u Total peeks: %u",
total_yields(),
total_spins(),
total_peeks());
}
--- 236,246 ----
}
}
#ifdef TRACESPINNING
void ParallelTaskTerminator::print_termination_counts() {
! log_trace(gc, task)("ParallelTaskTerminator Total yields: %u"
" Total spins: %u Total peeks: %u",
total_yields(),
total_spins(),
total_peeks());
}
< prev index next >