JDK-8362530 : VM crash with -XX:+PrintTieredEvents when collecting AOT profiling
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 25,26
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-07-17
  • Updated: 2025-08-28
  • Resolved: 2025-08-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26 b12Fixed
Related Reports
Causes :  
Causes :  
Description
% java -XX:AOTMode=record -XX:AOTConfiguration=app.aotconf -XX:+PrintTieredEvents com.sun.tools.javac.Main HelloWorld.java
0.063094: [call level=0 [java.lang.Byte::toUnsignedInt(B)I] @-1 queues=0,0 rate=n/a load=0.000000 k=1.00,1.00 total=128,0 mdo=0(0),0(0) max levels=0,0 compilable=c1,c1-osr,c2,c2-osr status=idle mtd: #
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/work/jdk/open/src/hotspot/share/runtime/mutex.cpp:462), pid=89389, tid=9475
#  assert(false) failed: Attempting to acquire lock TrainingData_lock/safepoint-1 out of order with lock tty_lock/tty -- possible deadlock
#
# JRE version:  (25.0) (fastdebug build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-internal-LTS-2025-06-15-0124474..., mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)

Comments
Changeset: 26ccb3ce Branch: master Author: Igor Veresov <iveresov@openjdk.org> Date: 2025-08-14 16:59:05 +0000 URL: https://git.openjdk.org/jdk/commit/26ccb3cef17a7a2a4b09af1e1e29b96d54a418aa
14-08-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/26750 Date: 2025-08-12 18:02:16 +0000
12-08-2025

ILW = Assert due to out of order locking, with AOT and PrintTieredEvents, no workaround but disabled AOT = HLM = P3
21-07-2025

This affects mainline and leyden repos. May be candidate for JDK 25 backport. Rise priority is you want to backport.
17-07-2025