src/share/vm/ci/ciReplay.cpp

changeset 5907
c775af091fe9
parent 5449
1b6395189726
child 6217
849eb7bfceac
     1.1 --- a/src/share/vm/ci/ciReplay.cpp	Mon Oct 07 14:13:28 2013 +0400
     1.2 +++ b/src/share/vm/ci/ciReplay.cpp	Mon Oct 07 10:41:56 2013 -0700
     1.3 @@ -965,14 +965,12 @@
     1.4      tty->cr();
     1.5    } else {
     1.6      EXCEPTION_CONTEXT;
     1.7 -    MethodCounters* mcs = method->method_counters();
     1.8      // m->_instructions_size = rec->instructions_size;
     1.9      m->_instructions_size = -1;
    1.10      m->_interpreter_invocation_count = rec->interpreter_invocation_count;
    1.11      m->_interpreter_throwout_count = rec->interpreter_throwout_count;
    1.12 -    if (mcs == NULL) {
    1.13 -      mcs = Method::build_method_counters(method, CHECK_AND_CLEAR);
    1.14 -    }
    1.15 +    MethodCounters* mcs = method->get_method_counters(CHECK_AND_CLEAR);
    1.16 +    guarantee(mcs != NULL, "method counters allocation failed");
    1.17      mcs->invocation_counter()->_counter = rec->invocation_counter;
    1.18      mcs->backedge_counter()->_counter = rec->backedge_counter;
    1.19    }

mercurial