src/hotspot/share/oops/generateOopMap.cpp
changeset 59056 15936b142f86
parent 58722 cba8afa5cfed
--- a/src/hotspot/share/oops/generateOopMap.cpp	Wed Nov 13 11:27:50 2019 +0000
+++ b/src/hotspot/share/oops/generateOopMap.cpp	Wed Nov 13 08:23:23 2019 -0500
@@ -1875,7 +1875,7 @@
 
 
 void GenerateOopMap::do_ldc(int bci) {
-  Bytecode_loadconstant ldc(method(), bci);
+  Bytecode_loadconstant ldc(methodHandle(Thread::current(), method()), bci);
   ConstantPool* cp  = method()->constants();
   constantTag tag = cp->tag_at(ldc.pool_index()); // idx is index in resolved_references
   BasicType       bt  = ldc.result_type();