src/share/vm/compiler/compileBroker.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 8012972 Sdiff src/share/vm/compiler

src/share/vm/compiler/compileBroker.cpp

Print this page




1701   if (_should_block) {
1702 #ifndef PRODUCT
1703     if (PrintCompilation && (Verbose || WizardMode))
1704       tty->print_cr("compiler thread " INTPTR_FORMAT " poll detects block request", Thread::current());
1705 #endif
1706     ThreadInVMfromNative tivfn(JavaThread::current());
1707   }
1708 }
1709 
1710 // wrapper for CodeCache::print_summary()
1711 static void codecache_print(bool detailed)
1712 {
1713   ResourceMark rm;
1714   stringStream s;
1715   // Dump code cache  into a buffer before locking the tty,
1716   {
1717     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
1718     CodeCache::print_summary(&s, detailed);
1719   }
1720   ttyLocker ttyl;
1721   tty->print_cr(s.as_string());
1722 }
1723 
1724 // ------------------------------------------------------------------
1725 // CompileBroker::invoke_compiler_on_method
1726 //
1727 // Compile a method.
1728 //
1729 void CompileBroker::invoke_compiler_on_method(CompileTask* task) {
1730   if (PrintCompilation) {
1731     ResourceMark rm;
1732     task->print_line();
1733   }
1734   elapsedTimer time;
1735 
1736   CompilerThread* thread = CompilerThread::current();
1737   ResourceMark rm(thread);
1738 
1739   if (LogEvents) {
1740     _compilation_log->log_compile(thread, task);
1741   }




1701   if (_should_block) {
1702 #ifndef PRODUCT
1703     if (PrintCompilation && (Verbose || WizardMode))
1704       tty->print_cr("compiler thread " INTPTR_FORMAT " poll detects block request", Thread::current());
1705 #endif
1706     ThreadInVMfromNative tivfn(JavaThread::current());
1707   }
1708 }
1709 
1710 // wrapper for CodeCache::print_summary()
1711 static void codecache_print(bool detailed)
1712 {
1713   ResourceMark rm;
1714   stringStream s;
1715   // Dump code cache  into a buffer before locking the tty,
1716   {
1717     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
1718     CodeCache::print_summary(&s, detailed);
1719   }
1720   ttyLocker ttyl;
1721   tty->print(s.as_string());
1722 }
1723 
1724 // ------------------------------------------------------------------
1725 // CompileBroker::invoke_compiler_on_method
1726 //
1727 // Compile a method.
1728 //
1729 void CompileBroker::invoke_compiler_on_method(CompileTask* task) {
1730   if (PrintCompilation) {
1731     ResourceMark rm;
1732     task->print_line();
1733   }
1734   elapsedTimer time;
1735 
1736   CompilerThread* thread = CompilerThread::current();
1737   ResourceMark rm(thread);
1738 
1739   if (LogEvents) {
1740     _compilation_log->log_compile(thread, task);
1741   }


src/share/vm/compiler/compileBroker.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File