equal
deleted
inserted
replaced
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: |