Annotation Type CriticalRegion


@Documented @Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface CriticalRegion
In some methods, Generator will generate code to transfer arrays from the JVM to native code using the Get/Release<primitivetype>ArrayElements methods. However these methods copy the underlying data. With this annotation, the generated code will always call the Get/ReleasePrimitiveArrayCritical methods instead.
See Also: