src/hotspot/cpu/arm/vtableStubs_arm.cpp
changeset 49368 2ed1c37df3a5
parent 48557 2e867226b914
child 50380 bec342339138
--- a/src/hotspot/cpu/arm/vtableStubs_arm.cpp	Fri Mar 09 12:03:20 2018 -0500
+++ b/src/hotspot/cpu/arm/vtableStubs_arm.cpp	Thu Feb 08 09:23:49 2018 +0100
@@ -158,8 +158,13 @@
 
   __ bind(L_no_such_interface);
 
-  assert(StubRoutines::throw_IncompatibleClassChangeError_entry() != NULL, "check initialization order");
-  __ jump(StubRoutines::throw_IncompatibleClassChangeError_entry(), relocInfo::runtime_call_type, Rtemp);
+  // Handle IncompatibleClassChangeError in itable stubs.
+  // More detailed error message.
+  // We force resolving of the call site by jumping to the "handle
+  // wrong method" stub, and so let the interpreter runtime do all the
+  // dirty work.
+  assert(SharedRuntime::get_handle_wrong_method_stub() != NULL, "check initialization order");
+  __ jump(SharedRuntime::get_handle_wrong_method_stub(), relocInfo::runtime_call_type, Rtemp);
 
   masm->flush();