CACAO
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
VM Class Reference

Represent an instance of a VM. More...

Public Member Functions

 VM (JavaVMInitArgs *)
 VM constructor. More...
 
 ~VM ()
 
void print_run_time_config ()
 Print run-time VM configuration. More...
 
JavaVMget_javavm ()
 
JNIEnvget_jnienv ()
 
bool is_initializing ()
 
bool is_created ()
 
bool is_exiting ()
 
int64_t get_starttime ()
 
int64_t get_inittime ()
 
Propertiesget_properties ()
 
Recompilerget_recompiler ()
 
NativeLibrariesget_nativelibraries ()
 
NativeMethodsget_nativemethods ()
 
SuckClasspathget_suckclasspath ()
 

Static Public Member Functions

static bool create (JavaVM **p_vm, void **p_env, void *vm_args)
 Implementation for JNI_CreateJavaVM. More...
 
static VMget_current ()
 
static void print_build_time_config ()
 Print build-time (default) VM configuration. More...
 

Private Member Functions

bool start_runtime_agents ()
 Start runtime agents which are provided by the JRE but need to be started explicitly by the VM. More...
 

Private Attributes

JavaVM_javavm
 
JNIEnv_jnienv
 
bool _initializing
 
bool _created
 
bool _exiting
 
int64_t _starttime
 
int64_t _inittime
 
Properties _properties
 Commandline properties. More...
 
Recompiler _recompiler
 JIT recompilation framework. More...
 
NativeLibraries _nativelibraries
 Native library table. More...
 
NativeMethods _nativemethods
 Native methods table. More...
 
SuckClasspath _suckclasspath
 Classpath entries list. More...
 

Static Private Attributes

static VM_vm = NULL
 This is the VM instance. More...
 

Detailed Description

Represent an instance of a VM.

Definition at line 56 of file vm.hpp.

Constructor & Destructor Documentation

VM::VM ( JavaVMInitArgs *  vm_args)

VM constructor.

Definition at line 636 of file vm.cpp.

VM::~VM ( )

Member Function Documentation

bool VM::create ( JavaVM **  p_vm,
void **  p_env,
void vm_args 
)
static

Implementation for JNI_CreateJavaVM.

This function creates a VM object.

Parameters
p_vm
p_env
vm_args
Returns
true on success, false otherwise.

Definition at line 591 of file vm.cpp.

static VM* VM::get_current ( )
inlinestatic

Definition at line 99 of file vm.hpp.

int64_t VM::get_inittime ( )
inline

Definition at line 111 of file vm.hpp.

JavaVM* VM::get_javavm ( )
inline

Definition at line 105 of file vm.hpp.

JNIEnv* VM::get_jnienv ( )
inline

Definition at line 106 of file vm.hpp.

NativeLibraries& VM::get_nativelibraries ( )
inline

Definition at line 127 of file vm.hpp.

NativeMethods& VM::get_nativemethods ( )
inline

Definition at line 128 of file vm.hpp.

Properties& VM::get_properties ( )
inline

Definition at line 113 of file vm.hpp.

Recompiler& VM::get_recompiler ( )
inline

Definition at line 116 of file vm.hpp.

int64_t VM::get_starttime ( )
inline

Definition at line 110 of file vm.hpp.

SuckClasspath& VM::get_suckclasspath ( )
inline

Definition at line 129 of file vm.hpp.

bool VM::is_created ( )
inline

Definition at line 108 of file vm.hpp.

bool VM::is_exiting ( )
inline

Definition at line 109 of file vm.hpp.

bool VM::is_initializing ( )
inline

Definition at line 107 of file vm.hpp.

void VM::print_build_time_config ( void  )
static

Print build-time (default) VM configuration.

Definition at line 1464 of file vm.cpp.

void VM::print_run_time_config ( )

Print run-time VM configuration.

Definition at line 1507 of file vm.cpp.

bool VM::start_runtime_agents ( )
private

Start runtime agents which are provided by the JRE but need to be started explicitly by the VM.

Definition at line 1531 of file vm.cpp.

Field Documentation

bool VM::_created
private

Definition at line 67 of file vm.hpp.

bool VM::_exiting
private

Definition at line 68 of file vm.hpp.

bool VM::_initializing
private

Definition at line 66 of file vm.hpp.

int64_t VM::_inittime
private

Definition at line 70 of file vm.hpp.

JavaVM* VM::_javavm
private

Definition at line 62 of file vm.hpp.

JNIEnv* VM::_jnienv
private

Definition at line 63 of file vm.hpp.

NativeLibraries VM::_nativelibraries
private

Native library table.

Definition at line 85 of file vm.hpp.

NativeMethods VM::_nativemethods
private

Native methods table.

Definition at line 86 of file vm.hpp.

Properties VM::_properties
private

Commandline properties.

Definition at line 73 of file vm.hpp.

Recompiler VM::_recompiler
private

JIT recompilation framework.

Definition at line 75 of file vm.hpp.

int64_t VM::_starttime
private

Definition at line 69 of file vm.hpp.

SuckClasspath VM::_suckclasspath
private

Classpath entries list.

Definition at line 90 of file vm.hpp.

VM * VM::_vm = NULL
staticprivate

This is the VM instance.

Definition at line 59 of file vm.hpp.


The documentation for this class was generated from the following files: