Annotation Type Pinned


  • @Retention(RUNTIME)
    @Target({PARAMETER,ANNOTATION_TYPE})
    public @interface Pinned
    Marks a method parameter as being pinnable.

    This means the data for the parameter is not copied to/from native memory. Instead, the JVM memory is locked and passed directly to the native code.

    IMPORTANT: This should not be used for functions that may block on network or filesystem access such as read(2), write(2), stat(2).