src/hotspot/share/opto/parse2.cpp
changeset 48826 c4d9d1b08e2e
parent 47216 71c04702a3d5
child 48856 c866eaca24cb
equal deleted inserted replaced
48825:ef8a98bc71f8 48826:c4d9d1b08e2e
  1481   case Bytecodes::_ldc_w:
  1481   case Bytecodes::_ldc_w:
  1482   case Bytecodes::_ldc2_w:
  1482   case Bytecodes::_ldc2_w:
  1483     // If the constant is unresolved, run this BC once in the interpreter.
  1483     // If the constant is unresolved, run this BC once in the interpreter.
  1484     {
  1484     {
  1485       ciConstant constant = iter().get_constant();
  1485       ciConstant constant = iter().get_constant();
  1486       if (constant.basic_type() == T_OBJECT &&
  1486       if (!constant.is_valid() ||
  1487           !constant.as_object()->is_loaded()) {
  1487           (constant.basic_type() == T_OBJECT &&
       
  1488            !constant.as_object()->is_loaded())) {
  1488         int index = iter().get_constant_pool_index();
  1489         int index = iter().get_constant_pool_index();
  1489         constantTag tag = iter().get_constant_pool_tag(index);
  1490         constantTag tag = iter().get_constant_pool_tag(index);
  1490         uncommon_trap(Deoptimization::make_trap_request
  1491         uncommon_trap(Deoptimization::make_trap_request
  1491                       (Deoptimization::Reason_unloaded,
  1492                       (Deoptimization::Reason_unloaded,
  1492                        Deoptimization::Action_reinterpret,
  1493                        Deoptimization::Action_reinterpret,