RFR (XS): JDK-8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.

Albert Noll albert.noll at oracle.com
Fri May 3 05:54:56 PDT 2013


Hi,

please review the patch.

Many thanks in advance,
Albert

jbs: https://jbs.oracle.com/bugs/browse/JDK-8013496
webrev: http://cr.openjdk.java.net/~adlertz/JDK-8013496/webrev00/

Problem:
The order in which the arguments  "-XX:ReservedCodeCacheSize=1m" and  
"-XX:InitialCodeCacheSize=500k"
are given to hotspot mattered. In particular, the above order resulted 
in an error:

Invalid maximum code cache size: -XX:ReservedCodeCacheSize=1m. Should be 
greater than InitialCodeCacheSize=2496K
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Fix: Moved the check: ReservedCodeCacheSize >= InitialCodeCacheSize to 
Arguments::check_vm_args_consistency()
(as suggested in the comment).

Currently, the minimum ReservedCodeCacheSize is 1K. Any thoughts on that?





More information about the hotspot-compiler-dev mailing list