Annotations

CriticalNative An ART runtime built-in optimization for native methods to speed up JNI transitions: Methods that are annotated with @CriticalNative use the fastest available JNI transitions from managed code to the native code and back. 
FastNative An ART runtime built-in optimization for native methods to speed up JNI transitions: Compared to normal native methods, native methods that are annotated with @FastNative use faster JNI transitions from managed code to the native code and back. 

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-11-11 UTC.