Integrated: JDK-8311076: RedefineClasses doesn't check for ConstantPool overflow

Alex Menkov amenkov at openjdk.org
Sat Feb 10 00:59:58 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

This pull request has now been integrated.

Changeset: e33d8a21
Author:    Alex Menkov <amenkov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e33d8a219811930492e684e19a73dadb09590052
Stats:     7 lines in 1 file changed: 6 ins; 0 del; 1 mod

8311076: RedefineClasses doesn't check for ConstantPool overflow

Reviewed-by: coleenp, lmesnik

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

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


More information about the serviceability-dev mailing list