RFR: 8355970: C2: Add command line option to print the compile phases

Roberto Castañeda Lozano rcastanedalo at openjdk.org
Tue May 13 07:01:51 UTC 2025


On Tue, 13 May 2025 06:08:08 GMT, Christian Hagedorn <chagedorn at openjdk.org> wrote:

> > Thanks for working on the Manuel, looks very useful! Have you considered using the Unified Logging (UL) instead of creating a new JVM flag for this? We already have `-Xlog:jit+compilation` that seems related to this. You might print the compile phase information with e.g. `-Xlog:jit+compilation=trace`, or add a new UL tag if necessary.
> > We want to move towards using the UL framework in the JVM compiler components, now that the preparation work by @anton-seoane is completed.
> 
> UL is definitely the long-term solution. But given that we have more levels with this new flag (-1 to 6) than UL provides (trace, info, etc.), how could we do it with UL?

Good point, I guess we would have to remap the IGV print levels to the (fewer) UL logging levels. I think that would be OK, we probably do not need that many different print levels for IGV anyway. But I am also OK with adding a new JVM flag in the context of this RFE and revisiting it when migrating to UL.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/25183#issuecomment-2875272920


More information about the hotspot-compiler-dev mailing list