RFR: 8325373: Improve StackCounter error reporting for bad switch cases [v2]
Adam Sotona
asotona at openjdk.org
Thu Apr 25 07:07:43 UTC 2024
> ClassFile API `StackMapGenerator` attaches print or hex dump of the method to an error message.
> However there is no such attachment when the stack maps generation is turned off.
>
> This patch moves class print/dump to `impl.Util::dumpMethod`, so it is shared by `StackMapGenerator` and `StackCounter` to provide the same level of details in case of an error.
>
> Please review.
>
> Thank you,
> Adam
Adam Sotona has updated the pull request incrementally with one additional commit since the last revision:
applied suggested changes
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/18914/files
- new: https://git.openjdk.org/jdk/pull/18914/files/f59654be..1824d1fa
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=18914&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=18914&range=00-01
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/18914.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/18914/head:pull/18914
PR: https://git.openjdk.org/jdk/pull/18914
More information about the core-libs-dev
mailing list