src/share/vm/oops/method.cpp

changeset 4205
a3ecd773a7b9
parent 4164
d804e148cff8
child 4246
ec204374e626
     1.1 --- a/src/share/vm/oops/method.cpp	Tue Oct 23 13:06:37 2012 -0700
     1.2 +++ b/src/share/vm/oops/method.cpp	Wed Oct 24 14:33:22 2012 -0700
     1.3 @@ -1155,8 +1155,12 @@
     1.4  vmSymbols::SID Method::klass_id_for_intrinsics(Klass* holder) {
     1.5    // if loader is not the default loader (i.e., != NULL), we can't know the intrinsics
     1.6    // because we are not loading from core libraries
     1.7 -  if (InstanceKlass::cast(holder)->class_loader() != NULL)
     1.8 +  // exception: the AES intrinsics come from lib/ext/sunjce_provider.jar
     1.9 +  // which does not use the class default class loader so we check for its loader here
    1.10 +  if ((InstanceKlass::cast(holder)->class_loader() != NULL) &&
    1.11 +       InstanceKlass::cast(holder)->class_loader()->klass()->name() != vmSymbols::sun_misc_Launcher_ExtClassLoader()) {
    1.12      return vmSymbols::NO_SID;   // regardless of name, no intrinsics here
    1.13 +  }
    1.14  
    1.15    // see if the klass name is well-known:
    1.16    Symbol* klass_name = InstanceKlass::cast(holder)->name();

mercurial