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

Coleen Phillimore coleenp at openjdk.org
Fri Oct 31 19:24:23 UTC 2025


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

Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:

  Add an explicit overflow test.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27964/files
  - new: https://git.openjdk.org/jdk/pull/27964/files/c1ad4e3e..ae7f90ae

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27964&range=06
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27964&range=05-06

  Stats: 4 lines in 1 file changed: 1 ins; 3 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