Pre-General Availability: 2017-05-23

2 Compiler Control

Compiler Control provides a way to control Java Virtual Machine (JVM) compilation through compiler directive options. The level of control is runtime-manageable and method specific.

A compiler directive is an instruction that tells the JVM how compilation should occur. A directive provides method-context precision in controlling the compilation process. Directives are a powerful tool for writing small, contained, JVM compiler tests because tests can be run without restarting the entire JVM. Compiler Control is also very useful for creating workarounds for bugs in the JVM compilers.

You can specify a file that contains compiler directives while starting a program through the command line. You can also add or remove directives from an already running program through diagnostic commands.

Compiler Control supersedes and is backward compatible with CompileCommand.