changeset in /hg/icedtea6: 2009-06-18 Gary Benson <gbenson at red...

Gary Benson gbenson at redhat.com
Thu Jun 18 09:16:37 PDT 2009


changeset 025782d51e5c in /hg/icedtea6
details: http://icedtea.classpath.org/hg/icedtea6?cmd=changeset;node=025782d51e5c
description:
	2009-06-18  Gary Benson  <gbenson at redhat.com>

		* ports/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp
		(SharkTopLevelBlock::improve_virtual_call): Only print cast
		warnings when run with -XX:+SharkPerformanceWarnings.

diffstat:

2 files changed, 15 insertions(+), 9 deletions(-)
ChangeLog                                               |    6 +++++
ports/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp |   18 +++++++--------

diffs (41 lines):

diff -r 4e8a6af384a1 -r 025782d51e5c ChangeLog
--- 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 at redhat
+2009-06-18  Gary Benson  <gbenson at 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 at redhat.com>
 
 	* ports/hotspot/src/share/vm/shark/sharkInvariants.hpp: New file.
diff -r 4e8a6af384a1 -r 025782d51e5c ports/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp
--- 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 @@ ciMethod* SharkTopLevelBlock::improve_vi
     // 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;
     }
   }



More information about the distro-pkg-dev mailing list