RFR: 8302508: Add timestamp to the output TraceCompilerThreads

Tobias Hartmann thartmann at openjdk.org
Wed Mar 8 10:04:13 UTC 2023


On Tue, 7 Mar 2023 03:49:52 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

> Having timestamps added to the output of TraceCompilerThreads will be helpful in understanding how frequently the compiler threads are being added or removed.
> 
> I did that and also added UL output.
> 
> 
> java -XX:+TraceCompilerThreads -XX:+PrintCompilation -version
> 
>      86 Added initial compiler thread C2 CompilerThread0
>      86 Added initial compiler thread C1 CompilerThread0
>      92    1       3       java.lang.Object::<init> (1 bytes)
>      96    2       3       java.lang.String::coder (15 bytes)
> 
> java -Xlog:jit+thread=debug -Xlog:jit+compilation=debug -version
> 
> [0.078s][debug][jit,thread] Added initial compiler thread C2 CompilerThread0
> [0.078s][debug][jit,thread] Added initial compiler thread C1 CompilerThread0
> [0.083s][debug][jit,compilation]    1       3       java.lang.Object::<init> (1 bytes)
> [0.087s][debug][jit,compilation]    2       3       java.lang.String::coder (15 bytes)
> 
> 
> Tested tier1.

Looks good to me.

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

Marked as reviewed by thartmann (Reviewer).

PR: https://git.openjdk.org/jdk/pull/12898


More information about the hotspot-compiler-dev mailing list