[9] RFR(XS): 8059596: VM startup fails with 'Invalid code heap sizes' if -XX:ReservedCodeCacheSize is set

Tobias Hartmann tobias.hartmann at oracle.com
Thu Oct 2 09:17:59 UTC 2014


Hi,

please review this small patch.

Bug: https://bugs.openjdk.java.net/browse/JDK-8059596
Webrev: http://cr.openjdk.java.net/~thartmann/8059596/webrev.00/

Problem:
The VM startup fails with 'Invalid code heap sizes' if 
-XX:ReservedCodeCacheSize >= 240M is specified. The problem is that in 
Arguments::set_tiered_flags() the code cache size is increased by 5 if 
TieredCompilation is enabled. This should only be done for default values.

Solution:
Add missing FLAG_IS_DEFAULT(ReservedCodeCacheSize) check.

Thanks,
Tobias


More information about the hotspot-dev mailing list