1.1 --- a/src/share/vm/compiler/compileLog.cpp Mon Sep 24 14:46:06 2012 -0700 1.2 +++ b/src/share/vm/compiler/compileLog.cpp Mon Sep 24 17:59:24 2012 -0700 1.3 @@ -125,46 +125,46 @@ 1.4 ciMetadata* mobj = obj->as_metadata(); 1.5 if (mobj->is_klass()) { 1.6 ciKlass* klass = mobj->as_klass(); 1.7 - begin_elem("klass id='%d'", id); 1.8 - name(klass->name()); 1.9 - if (!klass->is_loaded()) { 1.10 - print(" unloaded='1'"); 1.11 - } else { 1.12 - print(" flags='%d'", klass->modifier_flags()); 1.13 - } 1.14 - end_elem(); 1.15 + begin_elem("klass id='%d'", id); 1.16 + name(klass->name()); 1.17 + if (!klass->is_loaded()) { 1.18 + print(" unloaded='1'"); 1.19 + } else { 1.20 + print(" flags='%d'", klass->modifier_flags()); 1.21 + } 1.22 + end_elem(); 1.23 } else if (mobj->is_method()) { 1.24 ciMethod* method = mobj->as_method(); 1.25 - ciSignature* sig = method->signature(); 1.26 - // Pre-identify items that we will need! 1.27 - identify(sig->return_type()); 1.28 - for (int i = 0; i < sig->count(); i++) { 1.29 - identify(sig->type_at(i)); 1.30 - } 1.31 - begin_elem("method id='%d' holder='%d'", 1.32 - id, identify(method->holder())); 1.33 - name(method->name()); 1.34 - print(" return='%d'", identify(sig->return_type())); 1.35 - if (sig->count() > 0) { 1.36 - print(" arguments='"); 1.37 + ciSignature* sig = method->signature(); 1.38 + // Pre-identify items that we will need! 1.39 + identify(sig->return_type()); 1.40 for (int i = 0; i < sig->count(); i++) { 1.41 - print((i == 0) ? "%d" : " %d", identify(sig->type_at(i))); 1.42 + identify(sig->type_at(i)); 1.43 } 1.44 - print("'"); 1.45 - } 1.46 - if (!method->is_loaded()) { 1.47 - print(" unloaded='1'"); 1.48 - } else { 1.49 - print(" flags='%d'", (jchar) method->flags().as_int()); 1.50 - // output a few metrics 1.51 - print(" bytes='%d'", method->code_size()); 1.52 - method->log_nmethod_identity(this); 1.53 - //print(" count='%d'", method->invocation_count()); 1.54 - //int bec = method->backedge_count(); 1.55 - //if (bec != 0) print(" backedge_count='%d'", bec); 1.56 - print(" iicount='%d'", method->interpreter_invocation_count()); 1.57 - } 1.58 - end_elem(); 1.59 + begin_elem("method id='%d' holder='%d'", 1.60 + id, identify(method->holder())); 1.61 + name(method->name()); 1.62 + print(" return='%d'", identify(sig->return_type())); 1.63 + if (sig->count() > 0) { 1.64 + print(" arguments='"); 1.65 + for (int i = 0; i < sig->count(); i++) { 1.66 + print((i == 0) ? "%d" : " %d", identify(sig->type_at(i))); 1.67 + } 1.68 + print("'"); 1.69 + } 1.70 + if (!method->is_loaded()) { 1.71 + print(" unloaded='1'"); 1.72 + } else { 1.73 + print(" flags='%d'", (jchar) method->flags().as_int()); 1.74 + // output a few metrics 1.75 + print(" bytes='%d'", method->code_size()); 1.76 + method->log_nmethod_identity(this); 1.77 + //print(" count='%d'", method->invocation_count()); 1.78 + //int bec = method->backedge_count(); 1.79 + //if (bec != 0) print(" backedge_count='%d'", bec); 1.80 + print(" iicount='%d'", method->interpreter_invocation_count()); 1.81 + } 1.82 + end_elem(); 1.83 } else if (mobj->is_type()) { 1.84 BasicType type = mobj->as_type()->basic_type(); 1.85 elem("type id='%d' name='%s'", id, type2name(type));