diff src/share/vm/opto/doCall.cpp @ 6267:977007096840

7187290: nightly failures after JSR 292 lazy method handle update Reviewed-by: kvn, twisti
author twisti
date Fri, 27 Jul 2012 16:14:15 -0700
parents 1d7922586cf6
children 6c5b7a6becc8
line wrap: on
line diff
--- a/src/share/vm/opto/doCall.cpp	Tue Jul 24 10:51:00 2012 -0700
+++ b/src/share/vm/opto/doCall.cpp	Fri Jul 27 16:14:15 2012 -0700
@@ -641,8 +641,8 @@
 #ifndef PRODUCT
       // We do not expect the same handler bci to take both cold unloaded
       // and hot loaded exceptions.  But, watch for it.
-      if (extype->is_loaded()) {
-        tty->print_cr("Warning: Handler @%d takes mixed loaded/unloaded exceptions in ");
+      if ((Verbose || WizardMode) && extype->is_loaded()) {
+        tty->print("Warning: Handler @%d takes mixed loaded/unloaded exceptions in ", bci());
         method()->print_name(); tty->cr();
       } else if (PrintOpto && (Verbose || WizardMode)) {
         tty->print("Bailing out on unloaded exception type ");