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.