DirectByteBufferDeallocator Utility class used to free direct buffer memory.
| Modifier and Type | Field and Description |
|---|---|
| private static final Method | |
| private static final Method | |
| private static final boolean | |
| private static final Unsafe |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| private static Method | |
| private static Method | |
| private static Method | |
| private static Method | |
| private static Unsafe | |
| private static Unsafe |
| cleaner | back to summary |
|---|---|
| private static final Method cleaner | |
| cleanerClean | back to summary |
|---|---|
| private static final Method cleanerClean | |
| SUPPORTED | back to summary |
|---|---|
| private static final boolean SUPPORTED | |
| UNSAFE | back to summary |
|---|---|
| private static final Unsafe UNSAFE | |
| DirectByteBufferDeallocator | back to summary |
|---|---|
| private DirectByteBufferDeallocator() | |
| free | back to summary |
|---|---|
| public static void free(ByteBuffer buffer) Attempts to deallocate the underlying direct memory.
This is a no-op for buffers where
| |
| getAccesibleMethod | back to summary |
|---|---|
| private static Method getAccesibleMethod(String className, String methodName) | |
| getAccesibleMethod0 | back to summary |
|---|---|
| private static Method getAccesibleMethod0(String className, String methodName) | |
| getDeclaredMethod | back to summary |
|---|---|
| private static Method getDeclaredMethod(Unsafe tmpUnsafe, String methodName, Class<?>... parameterTypes) | |
| getDeclaredMethod0 | back to summary |
|---|---|
| private static Method getDeclaredMethod0(Unsafe tmpUnsafe, String methodName, Class<?>... parameterTypes) | |
| getUnsafe | back to summary |
|---|---|
| private static Unsafe getUnsafe() | |
| getUnsafe0 | back to summary |
|---|---|
| private static Unsafe getUnsafe0() | |