JDK-8365867 : AOT: Possible safepoint reached by thread that does not allow it
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 26
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2025-08-20
  • Updated: 2025-08-22
  • Resolved: 2025-08-22
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
26Resolved
Related Reports
Duplicate :  
Description
The test runtime/cds/appcds/aotFlags/AOTFlags.java has run into the assertion "Possible safepoint reached by thread that does not allow it" on a Windows x64 machine. Date: 2025-08-20 (jdk head)

Stack: [0x000000948d500000,0x000000948d600000],  sp=0x000000948d5ff290,  free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0x94f2e1]  JavaThread::check_for_valid_safepoint_state+0xb1  (javaThread.cpp:398)
V  [jvm.dll+0xdc15d6]  Mutex::check_safepoint_state+0x66  (mutex.cpp:77)
V  [jvm.dll+0xdc16ba]  Mutex::lock+0x3a  (mutex.cpp:120)
V  [jvm.dll+0x11d85fb]  MethodTrainingData::make+0x12b  (trainingData.cpp:154)
V  [jvm.dll+0x5d9ce5]  CompilationPolicy::print_training_data_on+0x55  (compilationPolicy.cpp:429)
V  [jvm.dll+0x5d9c04]  CompilationPolicy::print_event_on+0x374  (compilationPolicy.cpp:540)
V  [jvm.dll+0x5d980e]  CompilationPolicy::print_event+0x6e  (compilationPolicy.cpp:551)
V  [jvm.dll+0x5da402]  CompilationPolicy::select_task+0x1e2  (compilationPolicy.cpp:783)
V  [jvm.dll+0x5f9841]  CompileQueue::get+0x161  (compileBroker.cpp:450)
V  [jvm.dll+0x5f8987]  CompileBroker::compiler_thread_loop+0x187  (compileBroker.cpp:1944)
V  [jvm.dll+0x956df6]  JavaThread::thread_main_inner+0x296  (javaThread.cpp:776)
V  [jvm.dll+0x11bd374]  Thread::call_run+0x1b4  (thread.cpp:248)
V  [jvm.dll+0xe36961]  thread_native_entry+0xe1  (os_windows.cpp:562)
C  [ucrtbase.dll+0x1fb80]  (no source info available)
C  [KERNEL32.DLL+0x84d4]  (no source info available)
C  [ntdll.dll+0x51a11]  (no source info available)

VM Arguments:
-XX:AOTMode=record -XX:+PrintTieredEvents -XX:AOTConfiguration=hello.aotconfig


Comments
Closing as dup of JDK-8365726 as suggested by [~kvn]. Please re-open if it turns out to be a different issue.
22-08-2025

[~mdoerr] I think it is duplicate of JDK-8365726
20-08-2025