RFR: 8305066: [JVMCI] guarantee(ik->is_initialized()) failed: java/lang/Long$LongCache must be initialized

Doug Simon dnsimon at openjdk.org
Wed Mar 29 13:53:48 UTC 2023


Class initialization can fail for the boxing caches such as `Long$LongCache` due to things such as a `StackOverflowError`.
When rematerializing boxed values during deoptimization, a failed cache initialization must be handled. This PR handles it by throwing an OOME which is always semantically correct.

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

Commit messages:
 - handle box caching classes that had an error during initialization

Changes: https://git.openjdk.org/jdk/pull/13229/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13229&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8305066
  Stats: 58 lines in 4 files changed: 26 ins; 9 del; 23 mod
  Patch: https://git.openjdk.org/jdk/pull/13229.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/13229/head:pull/13229

PR: https://git.openjdk.org/jdk/pull/13229


More information about the hotspot-dev mailing list