hotspot/src/share/vm/prims/unsafe.cpp
changeset 38014 8731fa11f766
parent 37267 ad8c0e8de29f
child 38060 954c9575f653
equal deleted inserted replaced
38013:89b93eb018fb 38014:8731fa11f766
   932 
   932 
   933   // The anonymous class loader data has been artificially been kept alive to
   933   // The anonymous class loader data has been artificially been kept alive to
   934   // this point.   The mirror and any instances of this class have to keep
   934   // this point.   The mirror and any instances of this class have to keep
   935   // it alive afterwards.
   935   // it alive afterwards.
   936   if (anon_klass() != NULL) {
   936   if (anon_klass() != NULL) {
   937     anon_klass->class_loader_data()->set_keep_alive(false);
   937     anon_klass->class_loader_data()->dec_keep_alive();
   938   }
   938   }
   939 
   939 
   940   // let caller initialize it as needed...
   940   // let caller initialize it as needed...
   941 
   941 
   942   return (jclass) res_jh;
   942   return (jclass) res_jh;