CACAO
Data Structures | Enumerations | Functions
gc.hpp File Reference

Go to the source code of this file.

Data Structures

class  GC
 
class  GCCriticalSection
 Critical section for the GC. More...
 

Enumerations

enum  {
  GC_REFTYPE_THREADOBJECT, GC_REFTYPE_CLASSLOADER, GC_REFTYPE_JNI_GLOBALREF, GC_REFTYPE_FINALIZER,
  GC_REFTYPE_LOCALREF, GC_REFTYPE_STACK, GC_REFTYPE_CLASSREF, GC_REFTYPE_LOCKRECORD
}
 

Functions

void gc_init (size_t heapmaxsize, size_t heapstartsize)
 
voidheap_alloc_uncollectable (size_t size)
 
voidheap_alloc (size_t size, int references, methodinfo *finalizer, bool collect)
 
void heap_free (void *p)
 
void gc_call (void)
 
int64_t gc_get_heap_size (void)
 
int64_t gc_get_free_bytes (void)
 
int64_t gc_get_total_bytes (void)
 
int64_t gc_get_max_heap_size (void)
 
void gc_invoke_finalizers (void)
 
void gc_finalize_all (void)
 
voidgc_out_of_memory (size_t bytes_requested)
 
void gc_register_current_thread ()
 
void gc_unregister_current_thread ()
 
static int32_t heap_hashcode (java_object_t *obj)
 

Enumeration Type Documentation

anonymous enum
Enumerator
GC_REFTYPE_THREADOBJECT 
GC_REFTYPE_CLASSLOADER 
GC_REFTYPE_JNI_GLOBALREF 
GC_REFTYPE_FINALIZER 
GC_REFTYPE_LOCALREF 
GC_REFTYPE_STACK 
GC_REFTYPE_CLASSREF 
GC_REFTYPE_LOCKRECORD 

Definition at line 106 of file gc.hpp.

Function Documentation

void gc_call ( void  )

Definition at line 492 of file gc.c.

void gc_finalize_all ( void  )

Definition at line 535 of file gc.c.

int64_t gc_get_free_bytes ( void  )

Definition at line 553 of file gc.c.

int64_t gc_get_heap_size ( void  )

Definition at line 552 of file gc.c.

int64_t gc_get_max_heap_size ( void  )

Definition at line 555 of file gc.c.

int64_t gc_get_total_bytes ( void  )

Definition at line 554 of file gc.c.

void gc_init ( size_t  heapmaxsize,
size_t  heapstartsize 
)

Definition at line 59 of file gc-boehm.cpp.

void gc_invoke_finalizers ( void  )

Definition at line 513 of file gc.c.

void* gc_out_of_memory ( size_t  bytes_requested)

Definition at line 225 of file gc-boehm.cpp.

void gc_register_current_thread ( )

Definition at line 249 of file gc-boehm.cpp.

void gc_unregister_current_thread ( )

Definition at line 264 of file gc-boehm.cpp.

void* heap_alloc ( size_t  size,
int  references,
methodinfo finalizer,
bool  collect 
)

Definition at line 132 of file gc-boehm.cpp.

void* heap_alloc_uncollectable ( size_t  size)

Definition at line 107 of file gc-boehm.cpp.

void heap_free ( void p)

Definition at line 366 of file heap.c.

static int32_t heap_hashcode ( java_object_t obj)
inlinestatic

Definition at line 150 of file gc.hpp.