963 tty->print_cr("Warning: requesting ciMethod record for method with no data: "); |
963 tty->print_cr("Warning: requesting ciMethod record for method with no data: "); |
964 method->print_name(tty); |
964 method->print_name(tty); |
965 tty->cr(); |
965 tty->cr(); |
966 } else { |
966 } else { |
967 EXCEPTION_CONTEXT; |
967 EXCEPTION_CONTEXT; |
968 MethodCounters* mcs = method->method_counters(); |
|
969 // m->_instructions_size = rec->instructions_size; |
968 // m->_instructions_size = rec->instructions_size; |
970 m->_instructions_size = -1; |
969 m->_instructions_size = -1; |
971 m->_interpreter_invocation_count = rec->interpreter_invocation_count; |
970 m->_interpreter_invocation_count = rec->interpreter_invocation_count; |
972 m->_interpreter_throwout_count = rec->interpreter_throwout_count; |
971 m->_interpreter_throwout_count = rec->interpreter_throwout_count; |
973 if (mcs == NULL) { |
972 MethodCounters* mcs = method->get_method_counters(CHECK_AND_CLEAR); |
974 mcs = Method::build_method_counters(method, CHECK_AND_CLEAR); |
973 guarantee(mcs != NULL, "method counters allocation failed"); |
975 } |
|
976 mcs->invocation_counter()->_counter = rec->invocation_counter; |
974 mcs->invocation_counter()->_counter = rec->invocation_counter; |
977 mcs->backedge_counter()->_counter = rec->backedge_counter; |
975 mcs->backedge_counter()->_counter = rec->backedge_counter; |
978 } |
976 } |
979 } |
977 } |
980 |
978 |