RFR: 8358890: VM option -XX:AllowRedefinitionToAddDeleteMethods should be obsoleted then expired [v7]
Serguei Spitsyn
sspitsyn at openjdk.org
Mon Jul 28 06:35:42 UTC 2025
> The VM option -XX:AllowRedefinitionToAddDeleteMethods was added in JDK 13 as a temporary backward compatibility flag under JDK-8192936 and was immediately marked as Deprecate. The fix is to obsolete this option in JDK 26 and expire in JDK 27.
>
> TBD: Need to submit a related CSR.
>
> There are two concerns which may require some negotiation with the Runtime (@coleenp @dcubed-ojdk @dholmes-ora) and SQE (@lmesnik) teams:
> - Class redefinition/retransformation can impact lambda expressions which are supported with private methods
> - Many tests depend on this VM option and are being removed. I'm not sure if it is okay to completely remove those e may want another way to handle this (e.g. problem-listing the impacted tests for now).
>
> Testing:
> - mach5 tiers 1-6 are good
> - may need to run mach5 tiers > 6
Serguei Spitsyn has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains seven additional commits since the last revision:
- Merge
- Merge
- Merge
- review: replace RESERVED flag with UNUSED
- review: keep right order of the obsoleted VM options
- corrected one assert message
- 8358890: VM option -XX:AllowRedefinitionToAddDeleteMethods should be obsoleted then expired
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26232/files
- new: https://git.openjdk.org/jdk/pull/26232/files/80fc70ec..0edab914
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26232&range=06
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26232&range=05-06
Stats: 14768 lines in 435 files changed: 7261 ins; 5653 del; 1854 mod
Patch: https://git.openjdk.org/jdk/pull/26232.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26232/head:pull/26232
PR: https://git.openjdk.org/jdk/pull/26232
More information about the hotspot-dev
mailing list