static java.lang.Object |
Loader.Helper.accessGlobalRef(Pointer globalRef) |
Returns an Object from the JNI global reference stored in the Pointer.
|
static Pointer |
Loader.Helper.addressof(java.lang.String symbol) |
Returns the address found under the given name in the "dynamic symbol tables" (Linux, Mac OS X, etc)
or the "export tables" (Windows) of all libraries loaded, or null if not found.
|
static long |
Pointer.availablePhysicalBytes() |
Returns the amount of physical memory that is free according to the operating system, or 0 if unknown.
|
static void |
Loader.Helper.deleteGlobalRef(Pointer globalRef) |
Deletes the JNI global reference stored in the Pointer.
|
protected static long |
Pointer.getDirectBufferAddress(java.nio.Buffer b) |
Returns the starting address of the memory region referenced by the given direct Buffer .
|
static Pointer |
Loader.Helper.getJavaVM() |
Returns the JavaVM JNI object, as required by some APIs for initialization.
|
static void |
Loader.Helper.loadGlobal(java.lang.String filename) |
Loads all symbols from a library globally, that is dlopen(filename, RTLD_LAZY | RTLD_GLOBAL) ,
or simply by default with LoadLibrary(filename) on Windows.
|
static Pointer |
Loader.Helper.newGlobalRef(java.lang.Object object) |
Returns a JNI global reference stored in a Pointer for the given Object.
|
static long |
Pointer.physicalBytes() |
Returns the amount of non-shared physical memory currently used by the whole process, or 0 if unknown.
|
static long |
Pointer.physicalBytesInaccurate(long maxSize) |
|
static int |
Loader.Helper.totalChips() |
Returns the number of CPU chips installed according to the operating system, or 0 if unknown.
|
static int |
Loader.Helper.totalCores() |
Returns the number of CPU cores usable according to the operating system, or 0 if unknown.
|
static long |
Pointer.totalPhysicalBytes() |
Returns the amount of physical memory installed according to the operating system, or 0 if unknown.
|
static int |
Loader.Helper.totalProcessors() |
Returns the number of processors configured according to the operating system, or 0 if unknown.
|
private static boolean |
Pointer.trimMemory() |
Makes sure to return freed memory to the system, as required by Linux, at least.
|