RFR: 8356259: Lift basic -Xlog:jit* logging to "info" level

Vladimir Kozlov kvn at openjdk.org
Tue May 6 18:42:13 UTC 2025


On Tue, 6 May 2025 09:52:24 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> We have unified logging for JIT activity: -Xlog:jit+compilation, -Xlog:jit+inlining, etc. These serve as convenient replacements for -XX:+PrintCompilation, -XX:+PrintInlining, etc. And these replacements are useful, because UL can be forwarded to file, their format can be adjusted, and they can be handled asynchronously.
> 
> However, all useful messages are on "debug" level, which is inconvenient and surprising. It is reasonable to expect some level of basic logging when supplying -Xlog:jit+compilation, e.g. "info" level. I believe we should lift at least some of the logging to "info" level for these.
> 
> Additional testing:
>  - [x] Eyeballing `-Xlog:jit*` logs after the patch
>  - [ ] Linux x86_64 server fastdebug, `all`

PrintInlining and PrintIntrinsics are diagnostic flags (while PrintCompilation is product).
So mapping UL `Info` to product flag and `Debug` to diagnostic seems valid.

Based on this, I agree with changes to `CT::print_ul()` but not others.

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

PR Review: https://git.openjdk.org/jdk/pull/25061#pullrequestreview-2819277571


More information about the graal-dev mailing list