< prev index next >

src/hotspot/share/aot/aotLoader.cpp

Print this page
rev 58565 : 8238358: Implementation of JEP 371: Hidden Classes
Reviewed-by: duke
Contributed-by: mandy.chung@oracle.com, lois.foltan@oracle.com, david.holmes@oracle.com, harold.seigel@oracle.com, serguei.spitsyn@oracle.com, alex.buckley@oracle.com, jamsheed.c.m@oracle.com

@@ -41,11 +41,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_hidden() || ik->is_unsafe_anonymous()) {
     // don't even bother
     return;
   }
   if (UseAOT) {
     // We allow hotswap to be enabled after the onload phase, but not breakpoints

@@ -56,11 +56,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_hidden() || 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 >