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

Ioi Lam iklam at openjdk.org
Fri Jan 31 02:53:03 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

Ioi Lam has updated the pull request incrementally with one additional commit since the last revision:

  Renamed to has_jdwp_agent as suggested by @rose00

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/23378/files
  - new: https://git.openjdk.org/jdk/pull/23378/files/9477cd05..3de516bc

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=23378&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=23378&range=00-01

  Stats: 5 lines in 3 files changed: 0 ins; 0 del; 5 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