< prev index next >
src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.hpp
Print this page
rev 7209 : [mq]: inccms
rev 7210 : [mq]: icms-reviews
@@ -67,13 +67,10 @@
// CMS thread should yield for a young gen collection and direct allocations
static char _pad_1[64 - sizeof(jint)]; // prevent cache-line sharing
static volatile jint _pending_yields;
static char _pad_2[64 - sizeof(jint)]; // prevent cache-line sharing
- // Tracing messages, enabled by CMSTraceThreadState.
- static inline void trace_state(const char* desc);
-
// debugging
void verify_ok_to_terminate() const PRODUCT_RETURN;
public:
// Constructor
@@ -146,24 +143,10 @@
assert(_pending_yields >= 0, "can't be negative");
}
static bool should_yield() { return _pending_yields > 0; }
};
-inline void ConcurrentMarkSweepThread::trace_state(const char* desc) {
- if (CMSTraceThreadState) {
- char buf[128];
- TimeStamp& ts = gclog_or_tty->time_stamp();
- if (!ts.is_updated()) {
- ts.update();
- }
- jio_snprintf(buf, sizeof(buf), " [%.3f: CMSThread %s] ",
- ts.seconds(), desc);
- buf[sizeof(buf) - 1] = '\0';
- gclog_or_tty->print("%s", buf);
- }
-}
-
// For scoped increment/decrement of (synchronous) yield requests
class CMSSynchronousYieldRequest: public StackObj {
public:
CMSSynchronousYieldRequest() {
ConcurrentMarkSweepThread::increment_pending_yields();
< prev index next >