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

Refactor CodeCache::initialize_heaps to simplify adding new CodeCache segments

XMLWordPrintable

    • b18

      `CodeCache::initialize_heaps` assumes CodeCache is a combination of NonProfiledCodeHeap, ProfiledCodeHeap and NonNMethodCodeHeap. Adding new CodeCache segments causes a lot of changes in the function.
      We need to refactor the function to minimize changes when new segments are added to CodeCache.
      The ideal solution should be `CodeCache::initialize_heaps` not to depend on any particular code heap at all. It should accept a valid CodeCache layout description and initialize each code heap according to the description. A valid CodeCache layout description is created based on defaults, cmd options and ergonomics. The process of the description creation can fail if it is not possible to have a requested CodeCache layout.
       

            bulasevich Boris Ulasevich
            eastigeevich Evgeny Astigeevich
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: