APIdia Launch Partner
Top Description Methods
jdk.internal.vm.annotation

public @Interface ChangesCurrentThread

extends Annotation
Annotations
@Target:METHOD, CONSTRUCTOR
@Retention:RUNTIME
Imports
java.lang.annotation.*

A method or constructor must be annotated as "changes current thread" if it calls Thread.setCurrentThread. This annotation also disables inlining for the method to which it is applied unless the method being inlined into is also annotated ChangesCurrentThread.

Implementation Note

This annotation only takes effect for methods or constructors of classes loaded by the boot loader. Annotations on methods or constructors of classes loaded outside of the boot loader are ignored.

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString