Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
2249:3763ca6579b7 | 2250:f7de3327c683 |
---|---|
318 if (VerifyOops) { | 318 if (VerifyOops) { |
319 tty->print_cr("+VerifyOops count: %d", StubRoutines::verify_oop_count()); | 319 tty->print_cr("+VerifyOops count: %d", StubRoutines::verify_oop_count()); |
320 } | 320 } |
321 | 321 |
322 print_bytecode_count(); | 322 print_bytecode_count(); |
323 if (WizardMode) { | 323 if (PrintMallocStatistics) { |
324 tty->print("allocation stats: "); | 324 tty->print("allocation stats: "); |
325 alloc_stats.print(); | 325 alloc_stats.print(); |
326 tty->cr(); | 326 tty->cr(); |
327 } | 327 } |
328 | 328 |