Mercurial > hg > icedtea7
changeset 1904:21f0340f7c98
2009-06-18 Gary Benson <gbenson@redhat.com>
* ports/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp
(SharkTopLevelBlock::improve_virtual_call): Only print cast
warnings when run with -XX:+SharkPerformanceWarnings.
author | Gary Benson <gbenson@redhat.com> |
---|---|
date | Thu, 18 Jun 2009 12:14:25 -0400 |
parents | 8caa172d8bbc |
children | 6690b58a6c66 |
files | ChangeLog ports/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp |
diffstat | 2 files changed, 15 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Jun 18 12:00:59 2009 -0400 +++ b/ChangeLog Thu Jun 18 12:14:25 2009 -0400 @@ -1,3 +1,9 @@ +2009-06-18 Gary Benson <gbenson@redhat.com> + + * ports/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp + (SharkTopLevelBlock::improve_virtual_call): Only print cast + warnings when run with -XX:+SharkPerformanceWarnings. + 2009-06-18 Gary Benson <gbenson@redhat.com> * ports/hotspot/src/share/vm/shark/sharkInvariants.hpp: New file.
--- a/ports/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp Thu Jun 18 12:00:59 2009 -0400 +++ b/ports/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp Thu Jun 18 12:14:25 2009 -0400 @@ -902,15 +902,15 @@ // types, but I can't even tell which direction it // doesn't like. For now I'm going to block *any* cast. if (monomorphic_target != dest_method) { -#ifndef PRODUCT - tty->print_cr("found monomorphic target, but inhibited cast:"); - tty->print(" dest_method = "); - dest_method->print_short_name(tty); - tty->cr(); - tty->print(" monomorphic_target = "); - monomorphic_target->print_short_name(tty); - tty->cr(); -#endif // !PRODUCT + if (SharkPerformanceWarnings) { + warning("found monomorphic target, but inhibited cast:"); + tty->print(" dest_method = "); + dest_method->print_short_name(tty); + tty->cr(); + tty->print(" monomorphic_target = "); + monomorphic_target->print_short_name(tty); + tty->cr(); + } monomorphic_target = NULL; } }