diff src/share/vm/runtime/java.cpp @ 2250:f7de3327c683

7017124: Fix some VM stats to avoid 32-bit overflow Summary: Added new method inc_stat_counter() to increment long statistic values and use atomic long load and store. Reviewed-by: dholmes, jrose, phh, never
author kvn
date Mon, 07 Feb 2011 10:34:39 -0800
parents 3582bf76420e
children 850b2295a494
line wrap: on
line diff
--- a/src/share/vm/runtime/java.cpp	Mon Feb 07 10:25:39 2011 -0800
+++ b/src/share/vm/runtime/java.cpp	Mon Feb 07 10:34:39 2011 -0800
@@ -320,7 +320,7 @@
   }
 
   print_bytecode_count();
-  if (WizardMode) {
+  if (PrintMallocStatistics) {
     tty->print("allocation stats: ");
     alloc_stats.print();
     tty->cr();