< prev index next >

src/hotspot/share/cds/aotClassLinker.cpp

Print this page
@@ -139,10 +139,21 @@
  
    if (is_candidate(ik)) { // already checked.
      return true;
    }
  
+   if (!ik->is_linked() && SystemDictionaryShared::has_class_failed_verification(ik)) {
+     return false;
+   }
+ 
+ /* should we allow old classes to be aot-linked ??? Probably ...
+   if (!k->can_be_verified_at_dumptime()) {
+     // linking old classes 
+     return false;
+   }
+ */
+ 
    if (ik->is_hidden()) {
      assert(ik->shared_class_loader_type() != ClassLoader::OTHER, "must have been set");
      if (!CDSConfig::is_dumping_invokedynamic()) {
        return false;
      }
< prev index next >