src/hotspot/share/interpreter/abstractInterpreter.cpp
changeset 59056 15936b142f86
parent 58096 0d97bf7cf8a4
child 59165 2c55c2fc08f5
--- a/src/hotspot/share/interpreter/abstractInterpreter.cpp	Wed Nov 13 11:27:50 2019 +0000
+++ b/src/hotspot/share/interpreter/abstractInterpreter.cpp	Wed Nov 13 08:23:23 2019 -0500
@@ -267,7 +267,8 @@
         }
         assert(!invoke_bc.has_index_u4(code), "sanity");
         int method_index = invoke_bc.get_index_u2_cpcache(code);
-        Method* resolved_method = ConstantPool::method_at_if_loaded(cpool, method_index);
+        constantPoolHandle cp(Thread::current(), cpool);
+        Method* resolved_method = ConstantPool::method_at_if_loaded(cp, method_index);
         return (resolved_method == NULL);
       }
       default: ShouldNotReachHere();