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

CodeCache::old_nmethods_do incorrectly filters is_unloading nmethods

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 20
    • 20
    • hotspot
    • b25

    Description

      Class redefinition needs to scan for all nmethods, including is_unloading ones. If it doesn't, the Method can get nuked and then a concurrent GC will trip on it and crash. The normal iterator used by class redefinition uses the right iterator, but there is an optmized table being used in CodeCache::old_nmethods_do, and it inconsistently does filter is_unloading nmethods, which is a bug.

      Attachments

        Issue Links

          Activity

            People

              coleenp Coleen Phillimore
              eosterlund Erik Ă–sterlund
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: