Package org.h2.util
Class MemoryUnmapper
java.lang.Object
org.h2.util.MemoryUnmapper
Unsafe memory unmapper.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanunmap(ByteBuffer buffer) Tries to unmap memory for the specified byte buffer using Java internals in unsafe way ifSysProperties.NIO_CLEANER_HACKis enabled and access is not denied by a security manager.
-
Method Details
-
unmap
Tries to unmap memory for the specified byte buffer using Java internals in unsafe way ifSysProperties.NIO_CLEANER_HACKis enabled and access is not denied by a security manager.- Parameters:
buffer- mapped byte buffer- Returns:
- whether operation was successful
-