Diagnostic commands [JEP 228]

The Java Enhancement Proposal 228, Add More Diagnostic Commands, defined seven additional diagnostic commands 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
    • Nonentrant
    • Zombie

In addition, the dump_codelist diagnostic command allows the output to be directed to stdout or to a specified file. Output can be ...

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.