JDK-8370128 : AOT thread should not post JVMTI events
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 26
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • Submitted: 2025-10-17
  • Updated: 2025-11-08
  • Resolved: 2025-11-08
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
Relates :  
Description
The implementation of the following JEP 516:
https://bugs.openjdk.org/browse/JDK-8326035
  JEP 516: Ahead-of-Time Object Caching with Any GC
introduced AOT thread which is a JavaThread with the flag thread->is_hidden_from_external_view(). It has the following flag set: thread->is_AOT_thread(). We should provide a mechanism to skip JVMTI events on such threads. This can be based on the flag is_hidden_from_external_view() to make the solution more generic.
Comments
Closing this bug as NAI. It can be reconsidered though but if we ever get real problems.
08-11-2025

Why should we skip JVM TI events for this system thread? EDIT: Because it isn't really a Java thread but for convenience within the current framework it is one. We have a number of special JavaThread's that are not all full Java threads, but we don't have a fine-grained mechanism to select thread "properties" (can-execute-java-code, can-interact-with-oops, can-sync-with-gc, etc.)
30-10-2025