ClassFileParser::apply_parsed_class_metadata can safepoint when allocating the Annotations, before the other metadata fields are setup. This allows GCs to find incomplete InstanceKlasses in the CLD _klasses list. The code crashes when the InstanceKlass::_methods field is NULL.
|