Seven new diagnostic commands where added to the modern Java platform to enhance the ability to diagnose the JDK and the JVM. The new diagnostic commands are detailed here.
The print_codegenlist command prints methods that are currently queued for compilation. Since C1 and C2 compilation modes are on separate queues, this command would need to be issued to a specific queue.
The dump_codelist diagnostic command will print the following listed information for the compiled methods:
- Full signature
- Address range
- State:
- Alive
- Non-entrant
- Zombie
In addition, the dump_codelist diagnostic command allows the output to be directed to stdout or to a specified file. The output can be in XML form or standard text.
The print_codeblocks command allows us to print the following:
- The code cache size
- The code cache list
- A list of blocks in the code cache
- Addresses for code...