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. You can use directives to write small, contained, JVM compiler tests that can run without restarting the entire JVM. You can also use directives to create workarounds for bugs, in the JVM compilers.
You can specify a file that contains compiler directives when you start a program through the command line. You can also add or remove directives from an already running program by using diagnostic commands.
Compiler Control supersedes and is backward compatible with CompileCommand.
- Writing Directives