-
Bug
-
Resolution: Fixed
-
P4
-
hs20, hs23, hs24, hs25
-
b55
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8027100 | 8 | Stefan Johansson | P4 | Resolved | Fixed | b113 |
Arguments::parse_each_vm_init_arg uses atof to parse -Xminf and -Xmaxf options values. As a result all ill-formed values parsed as 0, while some error message is expected in that case:
jdk1.8.0/fastdebug/bin/java -Xminf=1231313131 -Xmaxfblablabla -XX:+PrintFlagsFinal -version | grep HeapFreeRatio
uintx MaxHeapFreeRatio := 0 {product}
uintx MinHeapFreeRatio := 0 {product}
java version "1.8.0-ea-fastdebug"
Java(TM) SE Runtime Environment (build 1.8.0-ea-fastdebug-b106)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b48-fastdebug, mixed mode)
Correct values parsed fine:
jdk1.8.0/fastdebug/bin/java -Xminf0.3 -Xmaxf0.4 -XX:+PrintFlagsFinal -version | grep HeapFreeRatio
uintx MaxHeapFreeRatio := 40 {product}
uintx MinHeapFreeRatio := 30 {product}
java version "1.8.0-ea-fastdebug"
Java(TM) SE Runtime Environment (build 1.8.0-ea-fastdebug-b106)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b48-fastdebug, mixed mode)
Looks like all HS trains are affected.
jdk1.8.0/fastdebug/bin/java -Xminf=1231313131 -Xmaxfblablabla -XX:+PrintFlagsFinal -version | grep HeapFreeRatio
uintx MaxHeapFreeRatio := 0 {product}
uintx MinHeapFreeRatio := 0 {product}
java version "1.8.0-ea-fastdebug"
Java(TM) SE Runtime Environment (build 1.8.0-ea-fastdebug-b106)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b48-fastdebug, mixed mode)
Correct values parsed fine:
jdk1.8.0/fastdebug/bin/java -Xminf0.3 -Xmaxf0.4 -XX:+PrintFlagsFinal -version | grep HeapFreeRatio
uintx MaxHeapFreeRatio := 40 {product}
uintx MinHeapFreeRatio := 30 {product}
java version "1.8.0-ea-fastdebug"
Java(TM) SE Runtime Environment (build 1.8.0-ea-fastdebug-b106)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b48-fastdebug, mixed mode)
Looks like all HS trains are affected.
- backported by
-
JDK-8027100 Ill-formed -Xminf and -Xmaxf options values interpreted as 0
- Resolved