vm_util.h File Reference


Classes

class  VM_Global_State
class  ExpandableMemBlock

Typedefs

typedef String String

Functions

IDATA wait_for_multiple_semaphores (int num, hysem_t *sems)
unsigned sizeof_java_lang_class ()
Boolean class_is_subtype (Class *sub, Class *super)
 Runtime support functions exported directly, because they may be called from native code.
Boolean class_is_subtype_fast (VTable *sub, Class *super)
 Like class_is_subtype, but sub must not be an interface class.
VMEXPORT void * vm_create_helper_for_function (void *(*fptr)(void *))
 Generates an VM's helper to invoke the provided function.

Variables

VTable * cached_object_array_vtable_ptr


Typedef Documentation

typedef struct String String


Function Documentation

IDATA wait_for_multiple_semaphores ( int  num,
hysem_t sems 
)

unsigned sizeof_java_lang_class (  ) 

Boolean class_is_subtype ( Class sub,
Class super 
)

Runtime support functions exported directly, because they may be called from native code.

Boolean class_is_subtype_fast ( VTable *  sub,
Class super 
)

Like class_is_subtype, but sub must not be an interface class.

VMEXPORT void* vm_create_helper_for_function ( void *(*)(void *)  fptr  ) 

Generates an VM's helper to invoke the provided function.

The helper takes the void* parameter, which is passed to the function after some preparation made (namely GC and stack info are prepared to allow GC to work properly).

The function must follow stdcall convention, which takes void* and returns void*, so does the helper. On a return from the function, the helper checks whether an exception was raised for the current thread, and rethrows it if necessary.


Variable Documentation

VTable* cached_object_array_vtable_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.