vm_threads.h File Reference


Defines

#define tmn_suspend_disable   assert(hythread_is_suspend_enabled());hythread_suspend_disable
#define tmn_suspend_enable   assert(!hythread_is_suspend_enabled());hythread_suspend_enable
#define tmn_suspend_disable_recursive   hythread_suspend_disable
#define tmn_suspend_enable_recursive   hythread_suspend_enable
#define p_TLS_vmthread   (jthread_self_vm_thread())

Typedefs

typedef vm_thread_t(*) vm_thread_accessor ()

Functions

jvmti_thread_t jthread_self_jvmti ()
 Gets jvmti_thread pointer from native thread.
jvmti_thread_t jthread_get_jvmti_thread (hythread_t native)
 Gets jvmti_thread pointer from a given native thread.
void jthread_start_count ()
 Auxiliary function to update thread count.
void jthread_end_count ()
jint jthread_allocate_vm_thread_pool (JavaVM *java_vm, vm_thread_t vm_thread)
void jthread_deallocate_vm_thread_pool (vm_thread_t vm_thread)
vm_thread_t jthread_allocate_thread ()
void vm_set_jvmti_saved_exception_registers (vm_thread_t vm_thread, Registers *regs)
void vm_set_exception_registers (vm_thread_t vm_thread, Registers &regs)
void * vm_get_ip_from_regs (vm_thread_t vm_thread)
void vm_reset_ip_from_regs (vm_thread_t vm_thread)
hythread_thin_monitor_tvm_object_get_lockword_addr (jobject obj)
 
Parameters:
[in] obj - jobject those address needs to be given

size_t vm_object_get_lockword_size ()
 
Returns:
The size of the memory chunk in the object that can be used by Thread Manager for synchronization purposes.

IDATA jthread_throw_exception (char *name, char *message)
 Creates exception object using given class name and message and throws it using jthread_throw_exception method.
IDATA jthread_throw_exception_object (jobject object)
 Throws given exception object.
int ti_is_enabled ()
 ti is enabled

Variables

VMEXPORT vm_thread_accessor get_thread_ptr


Define Documentation

#define tmn_suspend_disable   assert(hythread_is_suspend_enabled());hythread_suspend_disable

#define tmn_suspend_enable   assert(!hythread_is_suspend_enabled());hythread_suspend_enable

#define tmn_suspend_disable_recursive   hythread_suspend_disable

#define tmn_suspend_enable_recursive   hythread_suspend_enable

#define p_TLS_vmthread   (jthread_self_vm_thread())


Typedef Documentation

typedef vm_thread_t(*) vm_thread_accessor()


Function Documentation

jvmti_thread_t jthread_self_jvmti (  ) 

Gets jvmti_thread pointer from native thread.

jvmti_thread_t jthread_get_jvmti_thread ( hythread_t  native  ) 

Gets jvmti_thread pointer from a given native thread.

void jthread_start_count (  ) 

Auxiliary function to update thread count.

void jthread_end_count (  ) 

jint jthread_allocate_vm_thread_pool ( JavaVM java_vm,
vm_thread_t  vm_thread 
)

void jthread_deallocate_vm_thread_pool ( vm_thread_t  vm_thread  ) 

vm_thread_t jthread_allocate_thread (  ) 

void vm_set_jvmti_saved_exception_registers ( vm_thread_t  vm_thread,
Registers *  regs 
)

void vm_set_exception_registers ( vm_thread_t  vm_thread,
Registers &  regs 
)

void* vm_get_ip_from_regs ( vm_thread_t  vm_thread  ) 

void vm_reset_ip_from_regs ( vm_thread_t  vm_thread  ) 

hythread_thin_monitor_t* vm_object_get_lockword_addr ( jobject  obj  ) 

Parameters:
[in] obj - jobject those address needs to be given

Returns:
The address of the memory chunk in the object which can be used by the Thread Manager for synchronization purposes.

size_t vm_object_get_lockword_size (  ) 

Returns:
The size of the memory chunk in the object that can be used by Thread Manager for synchronization purposes.

The returned size must be equal for all Java objets and is constant over time. It should be possible to call this method during initialization time.

IDATA jthread_throw_exception ( char *  name,
char *  message 
)

Creates exception object using given class name and message and throws it using jthread_throw_exception method.

Parameters:
[in] name - char* name
[in] message - char* message
Returns:
int

IDATA jthread_throw_exception_object ( jobject  object  ) 

Throws given exception object.

Desides whether current thread is unwindable and throws it, raises exception otherwise.

int ti_is_enabled (  ) 

ti is enabled

Returns:
int


Variable Documentation

VMEXPORT vm_thread_accessor get_thread_ptr


Genereated on Tue Mar 11 19:25:23 2008 by Doxygen.

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.