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

G1: G1HeapRegionSize flag value not updated correctly

XMLWordPrintable

    • gc
    • b44

        The G1HeapRegionSize flag is not updated with the actual value of the region size. This makes it impossible to figure out the heap region size using PrintFlagsFinal:

        $ java -XX:+UseG1GC -XX:+PrintFlagsFinal -version | grep G1HeapRegionSize
            uintx G1HeapRegionSize = 0 {product}

        Or when setting it to the wrong value (this will actually use a region size of 8m):

        $ java -XX:+UseG1GC -XX:G1HeapRegionSize=11m -XX:+PrintFlagsFinal -version | grep G1HeapRegionSize
            uintx G1HeapRegionSize := 11534336 {product}

              brutisso Bengt Rutisson (Inactive)
              brutisso Bengt Rutisson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: