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

Make Arena MEMFLAGs immutable

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 24
    • 24
    • hotspot
    • b04

    Description

      Arenas carry NMT flags. Logically, an arena should never change that flag, however it is non-const. That is because Arenas (as ResourceAreas), used by CompilerThread, are accounted toward mtCompiler. But since the RA is already created in the parent class constructor, we then have to awkwardly change the flag of an already existing RA in the CompilerThread constructor.

      It would matters easier for NMT, and enable future simplifications, if Arena MEMFLAGS were never to change during the lifetime of Arena.

      Attachments

        Issue Links

          Activity

            People

              stuefe Thomas Stuefe
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: