RFR: 8351327: -XX:AOTMode=record interferes with application execution

Ioi Lam iklam at openjdk.org
Wed Mar 12 02:36:24 UTC 2025


Since [JDK-8348426](https://bugs.openjdk.org/browse/JDK-8348426), If `-XX:AOTMode=record` is specified in the command-line, the application's behavior is affected in the following 2 ways:

1. The application is not able to launch new Threads.
2. The exit code is ignored and becomes zero.

The fixes are simple and I also added a test case.

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

Commit messages:
 - 8351327: -XX:AOTMode=record interferes with application execution

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

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


More information about the hotspot-runtime-dev mailing list