< prev index next >
src/share/vm/utilities/taskqueue.cpp
Print this page
rev 8326 : [mq]: formatstring
@@ -29,12 +29,10 @@
#include "runtime/thread.inline.hpp"
#include "utilities/debug.hpp"
#include "utilities/stack.inline.hpp"
#include "utilities/taskqueue.hpp"
-PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
-
#ifdef TRACESPINNING
uint ParallelTaskTerminator::_total_yields = 0;
uint ParallelTaskTerminator::_total_spins = 0;
uint ParallelTaskTerminator::_total_peeks = 0;
#endif
@@ -214,12 +212,12 @@
#endif
}
} else {
if (PrintGCDetails && Verbose) {
gclog_or_tty->print_cr("ParallelTaskTerminator::offer_termination() "
- "thread %d sleeps after %d yields",
- Thread::current(), yield_count);
+ "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
< prev index next >