Memory allocation

The code heap containing non-method code is for JVM internal code and consists of a 3 MB fixed memory block. The rest of the code cache memory is equally allocated for the profiled code and non-profiled code segments. You have control of this via command-line commands. The following command can be used to define the code heap size for the non-method compiled code:

-XX:NonMethodCodeCodeHeapSize

The following command can be used to define the code heap size for the profiled compiled methods:

-XX:ProfiledCodeHeapSize

The following command can be used to define the code heap size for the non-profiled compiled methods:

-XX:NonProfiledCodeHeapSize

This Java 9 feature certainly stands to improve Java application efficiency. It ...

Get Java 9: Building Robust Modular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.