src/hotspot/share/classfile/systemDictionaryShared.cpp
changeset 51070 2f4c3cac8556
parent 50389 7e8c0409a747
child 51329 9c68699bebe5
equal deleted inserted replaced
51069:d5d5f6658b12 51070:2f4c3cac8556
   764   }
   764   }
   765 
   765 
   766   SharedDictionaryEntry* entry = ((SharedDictionary*)(k->class_loader_data()->dictionary()))->find_entry_for(k);
   766   SharedDictionaryEntry* entry = ((SharedDictionary*)(k->class_loader_data()->dictionary()))->find_entry_for(k);
   767   ResourceMark rm;
   767   ResourceMark rm;
   768   // Lambda classes are not archived and will be regenerated at runtime.
   768   // Lambda classes are not archived and will be regenerated at runtime.
   769   if (entry == NULL && strstr(k->name()->as_C_string(), "Lambda$") != NULL) {
   769   if (entry == NULL) {
       
   770     guarantee(strstr(k->name()->as_C_string(), "Lambda$") != NULL,
       
   771               "class should be in dictionary before being verified");
   770     return true;
   772     return true;
   771   }
   773   }
   772   assert(entry != NULL, "class should be in dictionary before being verified");
       
   773   entry->add_verification_constraint(name, from_name, from_field_is_protected,
   774   entry->add_verification_constraint(name, from_name, from_field_is_protected,
   774                                      from_is_array, from_is_object);
   775                                      from_is_array, from_is_object);
   775   if (entry->is_builtin()) {
   776   if (entry->is_builtin()) {
   776     // For builtin class loaders, we can try to complete the verification check at dump time,
   777     // For builtin class loaders, we can try to complete the verification check at dump time,
   777     // because we can resolve all the constraint classes.
   778     // because we can resolve all the constraint classes.