39 #if defined(WITH_JAVA_RUNTIME_LIBRARY_OPENJDK)
40 #ifndef WITH_JAVA_RUNTIME_LIBRARY_OPENJDK_7
74 #if defined(ENABLE_THREADS)
77 #if defined(WITH_JAVA_RUNTIME_LIBRARY_OPENJDK)
78 #ifndef WITH_JAVA_RUNTIME_LIBRARY_OPENJDK_7
87 #if defined(ENABLE_JVMTI)
88 NativeAgents _nativeagents;
98 static bool create(
JavaVM** p_vm,
void** p_env,
void* vm_args);
115 #if defined(ENABLE_THREADS)
119 #if defined(WITH_JAVA_RUNTIME_LIBRARY_OPENJDK)
120 #ifndef WITH_JAVA_RUNTIME_LIBRARY_OPENJDK_7
121 HPI& get_hpi () {
return _hpi; }
123 Mutex& get_jniMutex () {
return _jniMutex; }
125 Management& get_management () {
return _management; }
143 #if defined(ENABLE_INTRP)
144 extern uint8_t* intrp_main_stack;
189 void vm_abort(
const char* text, ...);
java_handle_t * vm_call_method_valist(methodinfo *m, java_handle_t *o, va_list ap)
Table containing all native methods registered with the VM.
NativeMethods & get_nativemethods()
SuckClasspath _suckclasspath
Classpath entries list.
java_handle_t * vm_call_method_jvalue(methodinfo *m, java_handle_t *o, const jvalue *args)
void vm_exit_handler(void)
int64_t vm_call_method_long_jvalue(methodinfo *m, java_handle_t *o, const jvalue *args)
float vm_call_method_float_jvalue(methodinfo *m, java_handle_t *o, const jvalue *args)
double vm_call_method_double_valist(methodinfo *m, java_handle_t *o, va_list ap)
Recompiler & get_recompiler()
NativeMethods _nativemethods
Native methods table.
bool VM_create(JavaVM **p_vm, void **p_env, void *vm_args)
C wrapper for VM::create.
NativeLibraries _nativelibraries
Native library table.
Dummy implementation of a mutex.
int64_t vm_call_method_long(methodinfo *m, java_handle_t *o,...)
java_handle_t * vm_call_method(methodinfo *m, java_handle_t *o,...)
Recompiler _recompiler
JIT recompilation framework.
int vm_destroy(JavaVM *vm)
int32_t vm_call_method_int(methodinfo *m, java_handle_t *o,...)
void vm_shutdown()
Hook point before the VM is actually destroyed.
void vm_abort(const char *text,...)
int32_t vm_call_method_int_valist(methodinfo *m, java_handle_t *o, va_list ap)
Host Porting Interface (HPI).
Properties _properties
Commandline properties.
void vm_run(JavaVM *vm, JavaVMInitArgs *vm_args)
NativeLibraries & get_nativelibraries()
static void print_build_time_config()
Print build-time (default) VM configuration.
Thread for JIT recompilations.
Properties & get_properties()
void print_run_time_config()
Print run-time VM configuration.
java_handle_t * vm_call_method_objectarray(methodinfo *m, java_handle_t *o, java_handle_objectarray_t *params)
int32_t vm_call_method_int_jvalue(methodinfo *m, java_handle_t *o, const jvalue *args)
double vm_call_method_double_jvalue(methodinfo *m, java_handle_t *o, const jvalue *args)
SuckClasspath & get_suckclasspath()
Table containing all loaded native libraries.
static bool create(JavaVM **p_vm, void **p_env, void *vm_args)
Implementation for JNI_CreateJavaVM.
float vm_call_method_float(methodinfo *m, java_handle_t *o,...)
void vm_abort_disassemble(void *pc, int count, const char *text,...)
static VM * _vm
This is the VM instance.
bool start_runtime_agents()
Start runtime agents which are provided by the JRE but need to be started explicitly by the VM...
VM(JavaVMInitArgs *)
VM constructor.
Represent an instance of a VM.
int64_t vm_call_method_long_valist(methodinfo *m, java_handle_t *o, va_list ap)
float vm_call_method_float_valist(methodinfo *m, java_handle_t *o, va_list ap)
static VM * get_current()
double vm_call_method_double(methodinfo *m, java_handle_t *o,...)