< prev index next >
src/share/vm/runtime/thread.cpp
Print this page
@@ -3675,10 +3675,15 @@
if (Arguments::has_profile()) FlatProfiler::engage(main_thread, true);
if (MemProfiling) MemProfiler::engage();
StatSampler::engage();
if (CheckJNICalls) JniPeriodicChecker::engage();
+ if (AsyncGCLogging && Arguments::gc_log_filename() != NULL) {
+ PeriodicTask* task = new GCLogFlusher(GCLogFlushInterval, static_cast<gcLogFileStream* >(gclog_or_tty));
+ task->enroll();
+ }
+
BiasedLocking::init();
#if INCLUDE_RTM_OPT
RTMLockingCounters::init();
#endif
< prev index next >