Stay organized with collections
Save and categorize content based on your preferences.
Annotations
NeverInline |
Indicates that an API should never be inlined by ART on Android.
|
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-08-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-27 UTC."],[],[],null,["# dalvik.annotation.optimization\n\nAdded in [API level 34](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\ndalvik.annotation.optimization\n==============================\n\nAnnotations\n-----------\n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CriticalNative](/reference/dalvik/annotation/optimization/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. |\n| [FastNative](/reference/dalvik/annotation/optimization/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. |\n\n-\n\n Annotations\n -----------\n\n - [CriticalNative](/reference/dalvik/annotation/optimization/CriticalNative)\n - [FastNative](/reference/dalvik/annotation/optimization/FastNative)"]]