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)
-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)