RFR: 8284849: Add deoptimization to unified logging [v7]

Johan Sjölén duke at openjdk.java.net
Thu Jun 9 11:43:20 UTC 2022


> 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.346s][info][deoptimization] Deoptimization start {
> [1.346s][info][deoptimization]   compileId = 407
> [1.346s][info][deoptimization]   compiler = c2
> [1.346s][info][deoptimization]   method:lineno:bci = java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(I)Z:176:26
> [1.346s][info][deoptimization]   instruction = ifne
> [1.346s][info][deoptimization]   reason = unstable_if
> [1.346s][info][deoptimization]   action = reinterpret
> [1.346s][info][deoptimization] } Deoptimization end

Johan Sjölén has updated the pull request incrementally with one additional commit since the last revision:

  Fix indentation

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8812/files
  - new: https://git.openjdk.java.net/jdk/pull/8812/files/1eddf482..f89bab4a

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8812&range=06
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8812&range=05-06

  Stats: 5 lines in 1 file changed: 0 ins; 0 del; 5 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8812.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8812/head:pull/8812

PR: https://git.openjdk.java.net/jdk/pull/8812


More information about the hotspot-dev mailing list