35 #if defined(ENABLE_JNI_HEADERS)
36 # include "native/include/java_lang_Runtime.h"
Table containing all native methods registered with the VM.
NativeMethods & get_nativemethods()
void register_methods(Utf8String classname, const JNINativeMethod *methods, size_t count)
Register native methods with the VM.
JNIEXPORT jlong JNICALL Java_java_lang_Runtime_totalMemory(JNIEnv *env, jobject _this)
#define NATIVE_METHODS_COUNT
void vm_shutdown()
Hook point before the VM is actually destroyed.
s8 gc_get_free_bytes(void)
static Utf8String from_utf8(const char *, size_t)
JNIEXPORT void JNICALL Java_java_lang_Runtime_exitInternal(JNIEnv *env, jobject _this, jint status)
s8 gc_get_heap_size(void)
static JNINativeMethod methods[]
JNIEXPORT void JNICALL Java_java_lang_Runtime_gc(JNIEnv *env, jobject _this)
JNIEXPORT jlong JNICALL Java_java_lang_Runtime_freeMemory(JNIEnv *env, jobject _this)
void _Jv_java_lang_Runtime_init(void)
static VM * get_current()