MCPcopy Create free account
hub / github.com/java-native-access/jna / setProtected

Method setProtected

src/com/sun/jna/Native.java:398–398  ·  view source on GitHub ↗

Set whether native memory accesses are protected from invalid accesses. This should only be set true when testing or debugging, and should not be considered reliable or robust for applications where JNA native calls are occurring on multiple threads. Protected mode will be automatically set if the

(boolean enable)

Source from the content-addressed store, hash-verified

396 * Java application.
397 */
398 public static synchronized native void setProtected(boolean enable);
399
400 /** Returns whether protection is enabled. Check the result of this method
401 * after calling {@link #setProtected setProtected(true)} to determine

Callers 4

testGCMethod · 0.95
setUpMethod · 0.95
tearDownMethod · 0.95
NativeClass · 0.95

Calls

no outgoing calls

Tested by 3

testGCMethod · 0.76
setUpMethod · 0.76
tearDownMethod · 0.76