RFR: 8258751: Improve ExceptionHandlerTable dump [v2]

Hao Sun github.com+16932759+shqking at openjdk.java.net
Tue Jan 5 02:54:09 UTC 2021


> In addition to PC offset, print the real PC as well if available when
> dumping the ExceptionHandlerTable, as it's more convenient and readable
> for debugging or other activities.
> 
> Note that compilers might dump the ExceptionHandlerTable before method
> registered. See functions emit_code_body() and fill_buffer(). However,
> real PC is not ready yet during these phases since the generated code is
> not installed. In such scenarios, the real PC is not printed.
> 
> The example below shows how the dump information would be changed after
> applying this patch.
>   BEFORE:
>     ExceptionHandlerTable (size = 40 bytes)
>     catch_pco = 392 (2 entries)
>       bci 8 at scope depth 0 -> pco 184
>       bci 19 at scope depth 0 -> pco 124
>   AFTER:
>     ExceptionHandlerTable (size = 40 bytes)
>     catch_pco = 392 (pc=0x0000ffff818f13c8, 2 entries)
>       bci 8 at scope depth 0 -> pco 184 (pc=0x0000ffff818f12f8)
>       bci 19 at scope depth 0 -> pco 124 (pc=0x0000ffff818f12bc)

Hao Sun has updated the pull request incrementally with one additional commit since the last revision:

  Update the copyright notice to 2021
  
  Upate the copyright notice to 2021.
  
  Change-Id: I442d1e3e1774488c2806c6cc21c2db7c4db08b8f
  CustomizedGitHooks: yes

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/1877/files
  - new: https://git.openjdk.java.net/jdk/pull/1877/files/018252b5..68c25c52

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

  Stats: 3 lines in 3 files changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1877.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1877/head:pull/1877

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


More information about the hotspot-compiler-dev mailing list