hotspot/src/share/vm/oops/method.cpp
changeset 34666 1c7168ea0034
parent 34185 ee71c590a456
child 35463 b32e362563bb
child 35543 0961315f4016
equal deleted inserted replaced
34665:9fdcc78b5398 34666:1c7168ea0034
  1318   // copy annotations over to new method
  1318   // copy annotations over to new method
  1319   newcm->copy_annotations_from(cm);
  1319   newcm->copy_annotations_from(cm);
  1320   return newm;
  1320   return newm;
  1321 }
  1321 }
  1322 
  1322 
  1323 vmSymbols::SID Method::klass_id_for_intrinsics(Klass* holder) {
  1323 vmSymbols::SID Method::klass_id_for_intrinsics(const Klass* holder) {
  1324   // if loader is not the default loader (i.e., != NULL), we can't know the intrinsics
  1324   // if loader is not the default loader (i.e., != NULL), we can't know the intrinsics
  1325   // because we are not loading from core libraries
  1325   // because we are not loading from core libraries
  1326   // exception: the AES intrinsics come from lib/ext/sunjce_provider.jar
  1326   // exception: the AES intrinsics come from lib/ext/sunjce_provider.jar
  1327   // which does not use the class default class loader so we check for its loader here
  1327   // which does not use the class default class loader so we check for its loader here
  1328   InstanceKlass* ik = InstanceKlass::cast(holder);
  1328   const InstanceKlass* ik = InstanceKlass::cast(holder);
  1329   if ((ik->class_loader() != NULL) && !SystemDictionary::is_ext_class_loader(ik->class_loader())) {
  1329   if ((ik->class_loader() != NULL) && !SystemDictionary::is_ext_class_loader(ik->class_loader())) {
  1330     return vmSymbols::NO_SID;   // regardless of name, no intrinsics here
  1330     return vmSymbols::NO_SID;   // regardless of name, no intrinsics here
  1331   }
  1331   }
  1332 
  1332 
  1333   // see if the klass name is well-known:
  1333   // see if the klass name is well-known: