io.vproxy.pni.annotation.LinkerOption Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pni-api-jdk22 Show documentation
Show all versions of pni-api-jdk22 Show documentation
panama native interface pni-api-jdk22
The newest version!
package io.vproxy.pni.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
public class LinkerOption {
private LinkerOption() {
}
/**
* Mark the function to be critical, see Linker.Option.isTrivial in jdk 21,
* or Linker.Option.critical in jdk 22.
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Critical {
boolean allowHeapAccess() default false;
}
}