Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8065634

Crash in InstanceKlass::clean_method_data when _method is NULL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: 8u40, 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b44
    • Verification:
      Not verified

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                stefank Stefan Karlsson
                Reporter:
                shadowbug Shadow Bug
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: