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

Processing of options related to segmented code cache should be enhanced

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b96

      Description

      With JEP 197 (JDK-8043304) three new option were added: NonNMethodCodeHeapSize, NonProfiledCodeHeapSize and ProfiledCodeHeapSize. Sum of these options should be equal to ReservedCodeCacheSize, otherwise VM initialization will fail.

      Unfortunately, current implementation requires manual change of ReservedCodeCacheSize's value if one of *CodeHeapSize options was explicitly changed.

      So if user saw a warning saying that code heap was exhausted and some of *CodeHeapSize option's value should be increased, then she'll try to do that without changing the ReservedCodeCacheSize's value and most probably VM initialization will fail.

      I'm suggesting to:
      - derive ReservedCodeCacheSize value from *CodeHeapSize options' values when ReservedCodeCacheSize was not explicitly passed to JVM;
      - automatically setup values of *CodeHeapSize options when one or two of them were explicitly passed as well as ReservedCodeCacheSize.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                thartmann Tobias Hartmann
                Reporter:
                fzhinkin Filipp Zhinkin
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: