| Modifier and Type | Annotation and Description |
|---|---|
| public @interface | AOTRuntimeSetup
Indicates that if the enclosing class or interface is present in the AOT
cache in the AOT-initialized state, the annotated method must be executed
before bootstrap phase 3 (that is, before |
| public @interface | AOTSafeClassInitializer
Indicates that the annotated class or interface is allowed to be AOT-initialized, because its author considers it safe to execute the static initializer of the class or interface during the AOT assembly phase. |
| public @interface | ChangesCurrentThread
A method or constructor must be annotated as "changes current thread" if it calls Thread.setCurrentThread. |
| public @interface | Contended
An annotation expressing that objects and/or their fields are expected to encounter memory contention, generally in the form of "false sharing". |
| public @interface | DontInline
A method or constructor may be annotated as "don't inline" if the inlining of this method should not be performed by the HotSpot VM. |
| public @interface | ForceInline
A method or constructor may be annotated as "force inline" if the standard inlining metrics are to be ignored when the HotSpot VM inlines the method or constructor. |
| public @interface | Hidden
A method or constructor may be annotated as "hidden" to hint it is desirable to omit it from stack traces. |
| public @interface | IntrinsicCandidate
The |
| public @interface | JvmtiHideEvents
A method may be annotated with JvmtiHideEvents to hint that JVMTI events should not be generated in context of the annotated method. |
| public @interface | JvmtiMountTransition
A method may be annotated with JvmtiMountTransition to hint it is desirable to omit it from JVMTI stack traces. |
| public @interface | ReservedStackAccess
An annotation expressing that a method is especially sensitive to stack overflows. |
| public @interface | Stable
A field may be annotated as "stable" to indicate that it is a stable variable, expected to change its value just once. |
| public @interface | TrustFinalFields
Indicates all instance final fields declared in the annotated class should
be trusted as constants by compilers in |