RFR: JDK-8311076: RedefineClasses doesn't check for ConstantPool overflow
Chris Plummer
cjplummer at openjdk.org
Fri Feb 9 03:43:54 UTC 2024
On Wed, 7 Feb 2024 20:53:53 GMT, Alex Menkov <amenkov at openjdk.org> wrote:
> 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
It looks like we don't have a reproducer for this issue. Please add the appropriate noreg label.
-------------
PR Review: https://git.openjdk.org/jdk/pull/17759#pullrequestreview-1871610809
More information about the serviceability-dev
mailing list