RFR: 8360164: AOT cache creation crashes in ~ThreadTotalCPUTimeClosure() [v4]

Ioi Lam iklam at openjdk.org
Tue Jul 1 18:30:21 UTC 2025


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

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

  reverted change in before_exit() as it is no longer needed

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/26008/files
  - new: https://git.openjdk.org/jdk/pull/26008/files/f8222e38..b8f7452e

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=26008&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26008&range=02-03

  Stats: 4 lines in 1 file changed: 0 ins; 2 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/26008.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26008/head:pull/26008

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


More information about the hotspot-runtime-dev mailing list