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

John R Rose jrose at openjdk.org
Thu Mar 13 00:26:51 UTC 2025


On Wed, 12 Mar 2025 02:32:09 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> 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.

I filed JDK-8351894: [premain] more ways to trigger AOT dumps
My purpose is to expedite our creation of a mid-application End Training Run hook.
The sooner we create the hook the sooner we can shake out more bugs
like the one fixed here.
A very simple hook will do; I propose java.lang.System::endTrainingRun().

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

PR Comment: https://git.openjdk.org/jdk/pull/24003#issuecomment-2719430275


More information about the hotspot-runtime-dev mailing list