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

Ill-formed -Xminf and -Xmaxf options values interpreted as 0

XMLWordPrintable

    • gc
    • b55
    • generic
    • generic

        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.

              sjohanss Stefan Johansson
              fzhinkin Filipp Zhinkin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: