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

Move code cache purging out of CodeCache::UnloadingScope

    XMLWordPrintable

Details

    • gc
    • b21

    Description

      Currently, in the destructor of CodeCache::UnloadingScope we flush/purge the code cache from dead nmethods.

      This is fairly surprising to do this in the destructor because the purging can take a very signficant amount of time (i.e. 90%+ of total class unloading time).

      Make the flushing/puring explicit.

      Attachments

        Issue Links

          Activity

            People

              tschatzl Thomas Schatzl
              tschatzl Thomas Schatzl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: