7025708: Assertion if using "-XX:+CITraceTypeFlow -XX:+Verbose" together
authornever
Fri, 25 Mar 2011 11:29:30 -0700
changeset 8865 634fdd9b3425
parent 8863 6f1fc00f3bbc
child 8866 8e33f415f111
7025708: Assertion if using "-XX:+CITraceTypeFlow -XX:+Verbose" together Reviewed-by: never Contributed-by: volker.simonis@gmail.com
hotspot/src/share/vm/ci/ciTypeFlow.cpp
--- a/hotspot/src/share/vm/ci/ciTypeFlow.cpp	Thu Mar 24 23:04:40 2011 -0700
+++ b/hotspot/src/share/vm/ci/ciTypeFlow.cpp	Fri Mar 25 11:29:30 2011 -0700
@@ -1871,7 +1871,8 @@
 // ------------------------------------------------------------------
 // ciTypeFlow::Block::print_on
 void ciTypeFlow::Block::print_on(outputStream* st) const {
-  if ((Verbose || WizardMode)) {
+  if ((Verbose || WizardMode) && (limit() >= 0)) {
+    // Don't print 'dummy' blocks (i.e. blocks with limit() '-1')
     outer()->method()->print_codes_on(start(), limit(), st);
   }
   st->print_cr("  ====================================================  ");