[jdk18] RFR: 8277964: ClassCastException with no stack trace is thrown with -Xcomp in method handle invocation [v2]

Vladimir Kozlov kvn at openjdk.java.net
Wed Dec 15 17:56:23 UTC 2021


> A proper fix for this is to use the catchException combination. However, that introduces significant cold startup performance regression. JDK-8278447 tracks the work to address the performance regression using catchException and asSpreader combinator. It may require significant work and refactoring which is risky for JDK 18. 
> 
> It is proposed to implement a workaround in C2 to white list the relevant methods (all methods in sun.invoke.util.ValueConversions class) not to omit stack trace when exception is thrown in them.
> 
> Added new regression test. Tested tier1-3.

Vladimir Kozlov has updated the pull request incrementally with one additional commit since the last revision:

  Removed boot classloader check

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

Changes:
  - all: https://git.openjdk.java.net/jdk18/pull/27/files
  - new: https://git.openjdk.java.net/jdk18/pull/27/files/3c23350d..5b6805b6

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

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

PR: https://git.openjdk.java.net/jdk18/pull/27


More information about the core-libs-dev mailing list