United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7025708 Assertion if using "-XX:+CITraceTypeFlow -XX:+Verbose" together
JDK-7025708 : Assertion if using "-XX:+CITraceTypeFlow -XX:+Verbose" together

Details
Type:
Bug
Submit Date:
2011-03-08
Status:
Closed
Updated Date:
2011-04-25
Project Name:
JDK
Resolved Date:
2011-04-25
Component:
hotspot
OS:
solaris_10
Sub-Component:
compiler
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs21
Fixed Versions:
hs21 (b07)

Related Reports
Backport:

Sub Tasks

Description
If -XX:+CITraceTypeFlow is beeing used together with -XX:+Verbose in a
debug build the VM asserts while trying to print the bytecodes of a
dummy block.
This can easily be fixed by suppressing the printing of bytecodes for
dummy blocks:

--- a/src/share/vm/ci/ciTypeFlow.cpp    Thu Feb 10 16:24:29 2011 -0800
+++ b/src/share/vm/ci/ciTypeFlow.cpp    Mon Mar 07 16:12:39 2011 +0100
@@ -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("  ====================================================  ");

                                    

Comments
EVALUATION

sounds good.
                                     
2011-03-10
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/322a41ec766c
                                     
2011-03-26



Hardware and Software, Engineered to Work Together