Mercurial > hg > graal-compiler
diff src/share/vm/ci/ciReplay.cpp @ 12868:c775af091fe9
8025566: EXCEPTION_ACCESS_VIOLATION in compiled by C1 String.valueOf method
Reviewed-by: kvn
author | twisti |
---|---|
date | Mon, 07 Oct 2013 10:41:56 -0700 |
parents | 1b6395189726 |
children | 183bd5c00828 |
line wrap: on
line diff
--- a/src/share/vm/ci/ciReplay.cpp Mon Oct 07 14:13:28 2013 +0400 +++ b/src/share/vm/ci/ciReplay.cpp Mon Oct 07 10:41:56 2013 -0700 @@ -965,14 +965,12 @@ tty->cr(); } else { EXCEPTION_CONTEXT; - MethodCounters* mcs = method->method_counters(); // m->_instructions_size = rec->instructions_size; m->_instructions_size = -1; m->_interpreter_invocation_count = rec->interpreter_invocation_count; m->_interpreter_throwout_count = rec->interpreter_throwout_count; - if (mcs == NULL) { - mcs = Method::build_method_counters(method, CHECK_AND_CLEAR); - } + MethodCounters* mcs = method->get_method_counters(CHECK_AND_CLEAR); + guarantee(mcs != NULL, "method counters allocation failed"); mcs->invocation_counter()->_counter = rec->invocation_counter; mcs->backedge_counter()->_counter = rec->backedge_counter; }