RFR: 8033441: print line numbers with -XX:+PrintOptoAssembly [v3]

Jason Tatton github.com+70893615+jasontatton-aws at openjdk.java.net
Thu Nov 19 21:50:20 UTC 2020


> Hi all,
> 
> Here is a patch which adds line number information to the `-XX:+PrintOptoAssembly` cmd line option output.
> 
> A new unit test is provided for this functionality. Note that the build must have debugging enabled for the test to be relevant and enabled.
> 
> Here is an example output:-
> before:
>         # Tryme::foo @ bci:3  L[0]=_ STK[0]=#NULL STK[1]=#Ptr0x0000ffff340089c0
> 
> after:
>         # Tryme::foo @ bci:3 (line 12)  L[0]=_ STK[0]=#NULL STK[1]=#Ptr0x0000ffff1008fd80
> 
> Testing:
> I have run tier 1/2 on linux on x86 and aarch64. With a `--enable-debug` build.

Jason Tatton has updated the pull request incrementally with two additional commits since the last revision:

 - fix whitespace error
 - adjusted test to check for line number information only if c2 optimizer output is present on console output

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/1272/files
  - new: https://git.openjdk.java.net/jdk/pull/1272/files/468f1cbf..40aa2473

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=1272&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=1272&range=01-02

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

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


More information about the hotspot-compiler-dev mailing list