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.

    Because the data is passed to native code unconverted, care must be taken to ensure element widths align for types wider than byte.

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