src/share/vm/runtime/java.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 8031320_8u Sdiff src/share/vm/runtime

src/share/vm/runtime/java.cpp

Print this page
rev 5968 : 8031320: Use Intel RTM instructions for locks
Summary: Use RTM for inflated locks and stack locks.
Reviewed-by: iveresov, twisti, roland, dcubed


 251     FlagSetting fs(DisplayVMOutput, DisplayVMOutput && PrintC1Statistics);
 252     Runtime1::print_statistics();
 253     Deoptimization::print_statistics();
 254     SharedRuntime::print_statistics();
 255     nmethod::print_statistics();
 256   }
 257 #endif /* COMPILER1 */
 258 
 259 #ifdef COMPILER2
 260   if ((PrintOptoStatistics || LogVMOutput || LogCompilation) && UseCompiler) {
 261     FlagSetting fs(DisplayVMOutput, DisplayVMOutput && PrintOptoStatistics);
 262     Compile::print_statistics();
 263 #ifndef COMPILER1
 264     Deoptimization::print_statistics();
 265     nmethod::print_statistics();
 266     SharedRuntime::print_statistics();
 267 #endif //COMPILER1
 268     os::print_statistics();
 269   }
 270 
 271   if (PrintLockStatistics || PrintPreciseBiasedLockingStatistics) {
 272     OptoRuntime::print_named_counters();
 273   }
 274 
 275   if (TimeLivenessAnalysis) {
 276     MethodLiveness::print_times();
 277   }
 278 #ifdef ASSERT
 279   if (CollectIndexSetStatistics) {
 280     IndexSet::print_statistics();
 281   }
 282 #endif // ASSERT
 283 #endif // COMPILER2
 284   if (CountCompiledCalls) {
 285     print_method_invocation_histogram();
 286   }
 287   if (ProfileInterpreter COMPILER1_PRESENT(|| C1UpdateMethodData)) {
 288     print_method_profiling_data();
 289   }
 290   if (TimeCompiler) {
 291     COMPILER2_PRESENT(Compile::print_timers();)


 373 }
 374 
 375 #else // PRODUCT MODE STATISTICS
 376 
 377 void print_statistics() {
 378 
 379   if (CITime) {
 380     CompileBroker::print_times();
 381   }
 382 
 383   if (PrintCodeCache) {
 384     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
 385     CodeCache::print();
 386   }
 387 
 388   if (PrintMethodFlushingStatistics) {
 389     NMethodSweeper::print();
 390   }
 391 
 392 #ifdef COMPILER2
 393   if (PrintPreciseBiasedLockingStatistics) {
 394     OptoRuntime::print_named_counters();
 395   }
 396 #endif
 397   if (PrintBiasedLockingStatistics) {
 398     BiasedLocking::print_counters();
 399   }
 400 
 401   // Native memory tracking data
 402   if (PrintNMTStatistics) {
 403     if (MemTracker::is_on()) {
 404       BaselineTTYOutputer outputer(tty);
 405       MemTracker::print_memory_usage(outputer, K, false);
 406     } else {
 407       tty->print_cr(MemTracker::reason());
 408     }
 409   }
 410 }
 411 
 412 #endif
 413 




 251     FlagSetting fs(DisplayVMOutput, DisplayVMOutput && PrintC1Statistics);
 252     Runtime1::print_statistics();
 253     Deoptimization::print_statistics();
 254     SharedRuntime::print_statistics();
 255     nmethod::print_statistics();
 256   }
 257 #endif /* COMPILER1 */
 258 
 259 #ifdef COMPILER2
 260   if ((PrintOptoStatistics || LogVMOutput || LogCompilation) && UseCompiler) {
 261     FlagSetting fs(DisplayVMOutput, DisplayVMOutput && PrintOptoStatistics);
 262     Compile::print_statistics();
 263 #ifndef COMPILER1
 264     Deoptimization::print_statistics();
 265     nmethod::print_statistics();
 266     SharedRuntime::print_statistics();
 267 #endif //COMPILER1
 268     os::print_statistics();
 269   }
 270 
 271   if (PrintLockStatistics || PrintPreciseBiasedLockingStatistics || PrintPreciseRTMLockingStatistics) {
 272     OptoRuntime::print_named_counters();
 273   }
 274 
 275   if (TimeLivenessAnalysis) {
 276     MethodLiveness::print_times();
 277   }
 278 #ifdef ASSERT
 279   if (CollectIndexSetStatistics) {
 280     IndexSet::print_statistics();
 281   }
 282 #endif // ASSERT
 283 #endif // COMPILER2
 284   if (CountCompiledCalls) {
 285     print_method_invocation_histogram();
 286   }
 287   if (ProfileInterpreter COMPILER1_PRESENT(|| C1UpdateMethodData)) {
 288     print_method_profiling_data();
 289   }
 290   if (TimeCompiler) {
 291     COMPILER2_PRESENT(Compile::print_timers();)


 373 }
 374 
 375 #else // PRODUCT MODE STATISTICS
 376 
 377 void print_statistics() {
 378 
 379   if (CITime) {
 380     CompileBroker::print_times();
 381   }
 382 
 383   if (PrintCodeCache) {
 384     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
 385     CodeCache::print();
 386   }
 387 
 388   if (PrintMethodFlushingStatistics) {
 389     NMethodSweeper::print();
 390   }
 391 
 392 #ifdef COMPILER2
 393   if (PrintPreciseBiasedLockingStatistics || PrintPreciseRTMLockingStatistics) {
 394     OptoRuntime::print_named_counters();
 395   }
 396 #endif
 397   if (PrintBiasedLockingStatistics) {
 398     BiasedLocking::print_counters();
 399   }
 400 
 401   // Native memory tracking data
 402   if (PrintNMTStatistics) {
 403     if (MemTracker::is_on()) {
 404       BaselineTTYOutputer outputer(tty);
 405       MemTracker::print_memory_usage(outputer, K, false);
 406     } else {
 407       tty->print_cr(MemTracker::reason());
 408     }
 409   }
 410 }
 411 
 412 #endif
 413 


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