RFR: JDK-8311076: RedefineClasses doesn't check for ConstantPool overflow [v2]
Alex Menkov
amenkov at openjdk.org
Fri Feb 9 20:42:14 UTC 2024
> The fix adds check that merged constant pool does not overflow u2 (two-byte unsigned).
> The check is added after merging `the_class` and `scratch_class` constant pools, but before rewriting constant pool references.
>
> testing:
> - sanity tier1;
> - all RedefineClasses/RetransformClasses tests:
> - test/jdk/java/lang/instrument
> - test/hotspot/jtreg/serviceability/jvmti/RedefineClasses
> - test/hotspot/jtreg/vmTestbase/nsk/jvmti/RedefineClasses
> - test/hotspot/jtreg/vmTestbase/nsk/jvmti/RetransformClasses
Alex Menkov has updated the pull request incrementally with one additional commit since the last revision:
logging on cp overflow
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/17759/files
- new: https://git.openjdk.org/jdk/pull/17759/files/31b31fe8..a726ea8b
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=17759&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=17759&range=00-01
Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/17759.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/17759/head:pull/17759
PR: https://git.openjdk.org/jdk/pull/17759
More information about the serviceability-dev
mailing list