RFR: 8349122: -XX:+AOTClassLinking is not compatible with jdwp

Ioi Lam iklam at openjdk.org
Fri Jan 31 02:42:15 UTC 2025


If an AOT cache was created with -XX:+AOTClassLinking, do not load it when `-agent:jdwp....` is detected from the command-line

Justification:
Since AOT cache is an optimization feature, it's OK to disable this optimization when jdwp is required.

Validation:
This fix is validated by running JCK jdwp tests in AOT mode

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

Commit messages:
 - Fixed whitespaces
 - 8349122: -XX:+AOTClassLinking is not compatible with jdwp

Changes: https://git.openjdk.org/jdk/pull/23378/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23378&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8349122
  Stats: 20 lines in 3 files changed: 18 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/23378.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23378/head:pull/23378

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


More information about the hotspot-runtime-dev mailing list