RFR: 8364360: Defining hidden class with no room in constant pool crashes the VM

Coleen Phillimore coleenp at openjdk.org
Fri Oct 24 18:11:17 UTC 2025


Check for constant pool index overflow and throw ClassFormatError instead of crashing.
Tested with tier1-4.

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

Commit messages:
 - 8364360: Defining hidden class with no room in constant pool crashes the VM

Changes: https://git.openjdk.org/jdk/pull/27964/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27964&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8364360
  Stats: 57 lines in 2 files changed: 57 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/27964.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27964/head:pull/27964

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


More information about the hotspot-runtime-dev mailing list