< prev index next >

src/hotspot/share/aot/aotLoader.cpp

Print this page

        

@@ -40,11 +40,11 @@
 #define FOR_ALL_AOT_HEAPS(heap) for (GrowableArrayIterator<AOTCodeHeap*> heap = heaps()->begin(); heap != heaps()->end(); ++heap)
 // Iterate over all AOT Libraries
 #define FOR_ALL_AOT_LIBRARIES(lib) for (GrowableArrayIterator<AOTLib*> lib = libraries()->begin(); lib != libraries()->end(); ++lib)
 
 void AOTLoader::load_for_klass(InstanceKlass* ik, Thread* thread) {
-  if (ik->is_unsafe_anonymous()) {
+  if (ik->is_nonfindable() || ik->is_unsafe_anonymous()) {
     // don't even bother
     return;
   }
   if (UseAOT) {
     // We allow hotswap to be enabled after the onload phase, but not breakpoints

@@ -55,11 +55,11 @@
   }
 }
 
 uint64_t AOTLoader::get_saved_fingerprint(InstanceKlass* ik) {
   assert(UseAOT, "called only when AOT is enabled");
-  if (ik->is_unsafe_anonymous()) {
+  if (ik->is_nonfindable() || ik->is_unsafe_anonymous()) {
     // don't even bother
     return 0;
   }
   FOR_ALL_AOT_HEAPS(heap) {
     AOTKlassData* klass_data = (*heap)->find_klass(ik);
< prev index next >