RFR: 8222460: -XX:+PrintFlagsRanges prints incorrect range

Per Liden per.liden at oracle.com
Mon Apr 15 05:58:51 UTC 2019


When testing JDK-8222145 (Add -XX:SoftMaxHeapSize flag), I ran into this 
issue.

-XX:+PrintFlagsRanges prints incorrect value range for flags that are 
associated with a constraint function. Instead of printing an empty 
range "[                           ...                           ]" is 
prints the default value range for the type. It should do the opposite.

The fix in jvmFlagRangeList.cpp is trivial. However, it has the side 
effect that some options that were previously not tested are now tested, 
and vice versa. As a result I had to exclude testing the max range of 
two problematic options (ActiveProcessorCount and G1PeriodicGCInterval). 
It might also be the cases that some of the previously excluded options 
no longer need to be excluded, but I didn't want to fiddle with that in 
this patch. If this is the case, I suggest that is fixed in a follow up RFE.

Testing: tier1-3 in all Oracle platforms, tier1-7 on Linux/x86_64

Bug: https://bugs.openjdk.java.net/browse/JDK-8222460
Webrev: http://cr.openjdk.java.net/~pliden/8222460/webrev.0

/Per


More information about the hotspot-runtime-dev mailing list