Integrated: 8360164: AOT cache creation crashes in ~ThreadTotalCPUTimeClosure()

Ioi Lam iklam at openjdk.org
Tue Jul 1 20:24:47 UTC 2025


On Thu, 26 Jun 2025 23:41:40 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> `java -XX:AOTMode=create` calls `vm_exit(0)` to terminate the JVM (see [this e-mail thread](https://mail.openjdk.org/pipermail/hotspot-runtime-dev/2024-August/072122.html) for the reason for doing so). However, at this point, the JVM has executed quite a lot of Java code and there are many threads in the JVM that would require a proper shutdown. See [comments by @kimbarrett](https://bugs.openjdk.org/browse/JDK-8360164?focusedId=14792754&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14792754) for a detailed analysis.
> 
> This fix calls `JVM_Halt(0)` instead of `vm_exit(0)` so that the proper shutdown code is executed.

This pull request has now been integrated.

Changeset: 7d7e60c8
Author:    Ioi Lam <iklam at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/7d7e60c8aebc4b4c1e7121be702393e5bc46e9ce
Stats:     3 lines in 1 file changed: 1 ins; 2 del; 0 mod

8360164: AOT cache creation crashes in ~ThreadTotalCPUTimeClosure()

Reviewed-by: ccheung, kvn, dholmes

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

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


More information about the hotspot-runtime-dev mailing list