src/hotspot/share/oops/generateOopMap.cpp
changeset 59056 15936b142f86
parent 58722 cba8afa5cfed
equal deleted inserted replaced
59055:57ad70bcf06c 59056:15936b142f86
  1873 }
  1873 }
  1874 
  1874 
  1875 
  1875 
  1876 
  1876 
  1877 void GenerateOopMap::do_ldc(int bci) {
  1877 void GenerateOopMap::do_ldc(int bci) {
  1878   Bytecode_loadconstant ldc(method(), bci);
  1878   Bytecode_loadconstant ldc(methodHandle(Thread::current(), method()), bci);
  1879   ConstantPool* cp  = method()->constants();
  1879   ConstantPool* cp  = method()->constants();
  1880   constantTag tag = cp->tag_at(ldc.pool_index()); // idx is index in resolved_references
  1880   constantTag tag = cp->tag_at(ldc.pool_index()); // idx is index in resolved_references
  1881   BasicType       bt  = ldc.result_type();
  1881   BasicType       bt  = ldc.result_type();
  1882 #ifdef ASSERT
  1882 #ifdef ASSERT
  1883   BasicType   tag_bt = (tag.is_dynamic_constant() || tag.is_dynamic_constant_in_error()) ? bt : tag.basic_type();
  1883   BasicType   tag_bt = (tag.is_dynamic_constant() || tag.is_dynamic_constant_in_error()) ? bt : tag.basic_type();