RFR: 8284849: Add deoptimization to unified logging [v8]
Johan Sjölén
duke at openjdk.java.net
Fri Jun 10 09:38:11 UTC 2022
On Thu, 9 Jun 2022 12:28:28 GMT, Johan Sjölén <duke at openjdk.java.net> wrote:
>> This PR adds a new "deoptimization" tag and a new log message on the info level mimicking JFR's deoptimization event. In the future this tag will be used to add trace level information, hopefully replacing TraceDeoptimization. JFR's event also captures the stacktrace, which this does not (happy to add this if considered important).
>>
>> An example output looks like this:
>>
>>
>> [1.324s][debug][deoptimization] cid=236 level=4java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(I)Z trap_bci=26 unstable_if reinterpret pc=0x00007f8b30bf8b94 relative_pc=0x0000000000000174
>
> Johan Sjölén has updated the pull request incrementally with one additional commit since the last revision:
>
> Fix printing
I reverted to using name_and_sig for output, updated the PR and fixed the nits.
@navyxliu, I did consider moving to `deopt` but opted against it as there are just as long tags in the rest of the set (for example "defaultmethods" and "methodcomparator").
-------------
PR: https://git.openjdk.org/jdk/pull/8812
More information about the hotspot-dev
mailing list