JDK-8025661 : Ill-formed -Xminf and -Xmaxf options values interpreted as 0
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs20,hs23,hs24,hs25
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2013-09-30
  • Updated: 2014-07-07
  • Resolved: 2013-10-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 Other
8Fixed hs25Fixed
Description
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.
Comments
impact, liklihood, workaround = medium, low, low -> p5; using p4 instead.
30-09-2013