objs/kite_gc.c File Reference

#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "kite_object.h"

Functions

kite_object_tkite_reference_object (kite_object_t *obj)
void kite_dereference_object (kite_object_t *obj)
kite_object_tkite_gc_incremental (kite_thread_t *thd)
void kite_gc_destroy_all (kite_thread_t *thd)

Function Documentation

void kite_dereference_object ( kite_object_t obj  ) 

Dereference object.

Parameters:
obj The object to dereference.
Note:
This has no effect if Kite was compiled with GC support. However, do not rely on the GC existing in a user's installed version. This is important to ensure that objects are freed appropriately and not leaked.

References kite_vm_t::gc_begin, kite_vm_t::gc_end, kite_object_t::gc_entry, kite_list_add_begin(), kite_list_remove(), kite_object_t::owner_thread, kite_object_t::refcount, and kite_thread_t::vm.

Referenced by KITE_CLASS_METHOD(), kite_destruct_object_nofree(), kite_destruct_symtab(), kite_handle_signal(), kite_new_exception(), kite_set_property(), kite_symtab_insert(), kite_symtab_remove(), kite_vm_call_method(), kite_vm_execute(), kite_vm_execute_exception(), and kite_vm_execute_user_method().

void kite_gc_destroy_all ( kite_thread_t thd  ) 

kite_object_t* kite_gc_incremental ( kite_thread_t thd  ) 

kite_object_t* kite_reference_object ( kite_object_t obj  ) 


Generated on Mon Apr 13 23:02:00 2009 for Kite by  doxygen 1.5.6