interpreter_imports.h File Reference


Detailed Description

Import interfaces used by the interpreter.

The current DRLVM implementation describes the following import interfaces: interpreter import locking, exceptions handling, JVMTI and JNI functionality.


Typedefs

typedef ManagedObject ManagedObject

Functions

VMEXPORT void vm_monitor_enter_wrapper (ManagedObject *obj)
 Gains ownership over a monitor.
VMEXPORT void vm_monitor_exit_wrapper (ManagedObject *obj)
 Releases ownership over a monitor.
VMEXPORT void class_throw_linking_error_for_interpreter (Class_Handle ch, unsigned cp_index, unsigned opcode)
 Calls the class_throw_linking_error function that throws a linking error.
VMEXPORT JNIEnvget_jni_native_intf ()
 Returns the JNI environment.
VMEXPORT jbyte jvmti_process_interpreter_breakpoint_event (jmethodID method, jlocation loc)
 A callback function for interpreter breakpoint processing.
VMEXPORT void jvmti_process_single_step_event (jmethodID method, jlocation location)
 Enables single-step event processing.
VMEXPORT void jvmti_process_frame_pop_event (jvmtiEnv *env, jmethodID method, jboolean was_popped_by_exception)
 Enables frame-pop event processing.
VMEXPORT GenericFunctionPointer classloader_find_native (const Method_Handle method)
 Looks for a method in native libraries of a class loader.


Typedef Documentation

typedef struct ManagedObject ManagedObject


Function Documentation

VMEXPORT void vm_monitor_enter_wrapper ( ManagedObject obj  ) 

Gains ownership over a monitor.

The current thread blocks, if the specified monitor is owned by another thread.

Parameters:
[in] obj - the monitor object where the monitor is located

VMEXPORT void vm_monitor_exit_wrapper ( ManagedObject obj  ) 

Releases ownership over a monitor.

Parameters:
[in] obj - the monitor object where the monitor is located

VMEXPORT void class_throw_linking_error_for_interpreter ( Class_Handle  ch,
unsigned  cp_index,
unsigned  opcode 
)

Calls the class_throw_linking_error function that throws a linking error.

Parameters:
[in] ch - the class handle
[in] cp_index - the index in the constant pool
[in] opcode - the opcode of bytecodes

VMEXPORT JNIEnv* get_jni_native_intf (  ) 

Returns the JNI environment.

Returns:
The JNI environment associated with this thread.

VMEXPORT jbyte jvmti_process_interpreter_breakpoint_event ( jmethodID  method,
jlocation  loc 
)

A callback function for interpreter breakpoint processing.

Parameters:
[in] method - the method ID
[in] loc - the location

VMEXPORT void jvmti_process_single_step_event ( jmethodID  method,
jlocation  location 
)

Enables single-step event processing.

Parameters:
[in] method - the method ID
[in] location - the location

VMEXPORT void jvmti_process_frame_pop_event ( jvmtiEnv env,
jmethodID  method,
jboolean  was_popped_by_exception 
)

Enables frame-pop event processing.

Parameters:
[in] env - the jvmti environment
[in] method - the method ID
[in] was_popped_by_exception - if the frame was popped by exception

VMEXPORT GenericFunctionPointer classloader_find_native ( const Method_Handle  method  ) 

Looks for a method in native libraries of a class loader.

Parameters:
[in] method - a searching native-method structure
Returns:
The pointer to found a native function.
Note:
The function raises UnsatisfiedLinkError with a method name in an exception message, if the specified method is not found.


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

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