src/share/vm/ci/ciMethod.cpp

changeset 6217
849eb7bfceac
parent 5991
b2ee5dc63353
child 6370
d8a0bb6f62a5
     1.1 --- a/src/share/vm/ci/ciMethod.cpp	Wed Jan 08 12:05:19 2014 +0100
     1.2 +++ b/src/share/vm/ci/ciMethod.cpp	Wed Jan 08 10:25:50 2014 -0800
     1.3 @@ -1357,15 +1357,21 @@
     1.4  
     1.5  #undef FETCH_FLAG_FROM_VM
     1.6  
     1.7 +void ciMethod::dump_name_as_ascii(outputStream* st) {
     1.8 +  Method* method = get_Method();
     1.9 +  st->print("%s %s %s",
    1.10 +            method->klass_name()->as_quoted_ascii(),
    1.11 +            method->name()->as_quoted_ascii(),
    1.12 +            method->signature()->as_quoted_ascii());
    1.13 +}
    1.14 +
    1.15  void ciMethod::dump_replay_data(outputStream* st) {
    1.16    ResourceMark rm;
    1.17    Method* method = get_Method();
    1.18    MethodCounters* mcs = method->method_counters();
    1.19 -  Klass*  holder = method->method_holder();
    1.20 -  st->print_cr("ciMethod %s %s %s %d %d %d %d %d",
    1.21 -               holder->name()->as_quoted_ascii(),
    1.22 -               method->name()->as_quoted_ascii(),
    1.23 -               method->signature()->as_quoted_ascii(),
    1.24 +  st->print("ciMethod ");
    1.25 +  dump_name_as_ascii(st);
    1.26 +  st->print_cr(" %d %d %d %d %d",
    1.27                 mcs == NULL ? 0 : mcs->invocation_counter()->raw_counter(),
    1.28                 mcs == NULL ? 0 : mcs->backedge_counter()->raw_counter(),
    1.29                 interpreter_invocation_count(),

mercurial