Java 9:Building Robust Modular Applications
上QQ阅读APP看书,第一时间看更新

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 also impacts other processes that employ the code cache.