hotspot/src/share/vm/runtime/deoptimization.cpp
changeset 33593 60764a78fa5c
parent 33198 b37ad9fbf681
child 33611 9abd65805e19
equal deleted inserted replaced
33579:01ade4446d96 33593:60764a78fa5c
  1343   }
  1343   }
  1344   return mdo;
  1344   return mdo;
  1345 }
  1345 }
  1346 
  1346 
  1347 #if defined(COMPILER2) || defined(SHARK) || INCLUDE_JVMCI
  1347 #if defined(COMPILER2) || defined(SHARK) || INCLUDE_JVMCI
  1348 void Deoptimization::load_class_by_index(constantPoolHandle constant_pool, int index, TRAPS) {
  1348 void Deoptimization::load_class_by_index(const constantPoolHandle& constant_pool, int index, TRAPS) {
  1349   // in case of an unresolved klass entry, load the class.
  1349   // in case of an unresolved klass entry, load the class.
  1350   if (constant_pool->tag_at(index).is_unresolved_klass()) {
  1350   if (constant_pool->tag_at(index).is_unresolved_klass()) {
  1351     Klass* tk = constant_pool->klass_at_ignore_error(index, CHECK);
  1351     Klass* tk = constant_pool->klass_at_ignore_error(index, CHECK);
  1352     return;
  1352     return;
  1353   }
  1353   }
  1374     }
  1374     }
  1375   }
  1375   }
  1376 }
  1376 }
  1377 
  1377 
  1378 
  1378 
  1379 void Deoptimization::load_class_by_index(constantPoolHandle constant_pool, int index) {
  1379 void Deoptimization::load_class_by_index(const constantPoolHandle& constant_pool, int index) {
  1380   EXCEPTION_MARK;
  1380   EXCEPTION_MARK;
  1381   load_class_by_index(constant_pool, index, THREAD);
  1381   load_class_by_index(constant_pool, index, THREAD);
  1382   if (HAS_PENDING_EXCEPTION) {
  1382   if (HAS_PENDING_EXCEPTION) {
  1383     // Exception happened during classloading. We ignore the exception here, since it
  1383     // Exception happened during classloading. We ignore the exception here, since it
  1384     // is going to be rethrown since the current activation is going to be deoptimized and
  1384     // is going to be rethrown since the current activation is going to be deoptimized and