equal
deleted
inserted
replaced
830 assert(this == h_method(), "wrong h_method()" ); |
830 assert(this == h_method(), "wrong h_method()" ); |
831 address entry = Interpreter::entry_for_method(h_method); |
831 address entry = Interpreter::entry_for_method(h_method); |
832 assert(entry != NULL, "interpreter entry must be non-null"); |
832 assert(entry != NULL, "interpreter entry must be non-null"); |
833 // Sets both _i2i_entry and _from_interpreted_entry |
833 // Sets both _i2i_entry and _from_interpreted_entry |
834 set_interpreter_entry(entry); |
834 set_interpreter_entry(entry); |
835 if (is_native() && !is_method_handle_intrinsic()) { |
835 |
|
836 // Don't overwrite already registered native entries. |
|
837 if (is_native() && !has_native_function()) { |
836 set_native_function( |
838 set_native_function( |
837 SharedRuntime::native_method_throw_unsatisfied_link_error_entry(), |
839 SharedRuntime::native_method_throw_unsatisfied_link_error_entry(), |
838 !native_bind_event_is_interesting); |
840 !native_bind_event_is_interesting); |
839 } |
841 } |
840 |
842 |