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

NewSize and -Xmn don't affect actual VM option values

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Won't Fix
    • Affects Version/s: 8u40
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc

      Description

      JDK 8u40 b11 Solaris sparcv9

      -Xmn option does not work as expected on JDK 8u40b11 (Solaris sparcv9 build) with -XX:+UseParallelGC. Actual values of NewSize and MaxNewSize are not changed with this option.

      Examples:

      JDK 8u40 build 11:
      ./jdk8u40b11/bin/java -XX:+UseParallelGC -Xmn2m -XX:+PrintFlagsFinal -version | grep -i newsize uintx MaxNewSize := 12582912 {product}
          uintx NewSize := 12582912 {product}
          uintx NewSizeThreadIncrease = 5320 {pd product}
      java version "1.8.0_40-ea"
      Java(TM) SE Runtime Environment (build 1.8.0_40-ea-b11)
      Java HotSpot(TM) 64-Bit Server VM (build 25.40-b15, mixed mode)

      expected value for MaxNewSize and NewSize is 2m, here is 12m.

      The same with JDK 8u40 build 16:
      ./jdk8u40b16/bin/java -XX:+UseParallelGC -Xmn2m -XX:+PrintFlagsFinal -version | grep -i newsize
          uintx MaxNewSize := 12582912 {product}
          uintx NewSize := 12582912 {product}
          uintx NewSizeThreadIncrease = 5320 {pd product}
      java version "1.8.0_40-ea"
      Java(TM) SE Runtime Environment (build 1.8.0_40-ea-b16)
      Java HotSpot(TM) 64-Bit Server VM (build 25.40-b20, mixed mode)

      Option works as expected on JDK 9 build:
      JDK 9 build 40
      ./jdk1.9.0/bin/java -XX:+UseParallelGC -Xmn2m -XX:+PrintFlagsFinal -version | grep -i newsize
          uintx MaxNewSize := 2097152 {product}
          uintx NewSize := 2097152 {product}
          uintx NewSizeThreadIncrease = 5320 {pd product}
      java version "1.9.0-ea"
      Java(TM) SE Runtime Environment (build 1.9.0-ea-b40)
      Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b40, mixed mode)

      Option works as expected with other GCs :

      ./jdk8u40b16/bin/java -XX:+UseG1GC -Xmn2m -XX:+PrintFlagsFinal -version | grep -i newsize
          uintx MaxNewSize := 4194304 {product}
          uintx NewSize := 2097152 {product}
          uintx NewSizeThreadIncrease = 5320 {pd product}
      java version "1.8.0_40-ea"
      Java(TM) SE Runtime Environment (build 1.8.0_40-ea-b16)
      Java HotSpot(TM) 64-Bit Server VM (build 25.40-b20, mixed mode)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mchernov Michail Chernov
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: