JDK-8059653 : VM startup fails with 'Invalid code heap sizes' if -XX:ReservedCodeCacheSize is set
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-10-02
  • Updated: 2017-07-26
  • Resolved: 2014-10-02
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 9
9 b35Fixed
Related Reports
Relates :  
Relates :  
Description
The VM fails if -XX:ReservedCodeCacheSize >= 240M is specified:

Invalid code heap sizes: NonMethodCodeHeapSize(5120K) + ProfiledCodeHeapSize(122880K) + NonProfiledCodeHeapSize(117760K) = 245760K. Must be equal to ReservedCodeCacheSize = 262144K.