C:/Users/Dennis/src/lang/russell.orig/src/gc/gc.h File Reference

#include <stddef.h>

Go to the source code of this file.

Defines

#define GC_MALLOC(sz)   GC_malloc(sz)
#define GC_MALLOC_ATOMIC(sz)   GC_malloc_atomic(sz)
#define GC_REALLOC(old, sz)   GC_realloc(old, sz)
#define GC_FREE(p)   GC_free(p)
#define GC_REGISTER_FINALIZER(p, f, d, of, od)   GC_register_finalizer(p, f, d, of, od)

Typedefs

typedef unsigned long word
typedef long signed_word
typedef void(* GC_finalization_proc )()

Functions

char * GC_malloc ()
char * GC_malloc_atomic ()
void GC_free ()
char * GC_base ()
size_t GC_size ()
char * GC_realloc ()
int GC_expand_hp ()
void GC_clear_roots ()
void GC_add_roots ()
void GC_register_displacement ()
void GC_gcollect ()
char * GC_debug_malloc ()
char * GC_debug_malloc_atomic ()
void GC_debug_free ()
char * GC_debug_realloc ()
void GC_register_finalizer ()
int GC_register_disappearing_link ()
int GC_unregister_disappearing_link ()
char * GC_make_closure ()
void GC_debug_invoke_finalizer ()

Variables

word GC_heapsize
word GC_gc_no
int GC_dont_gc
int GC_dont_expand
word GC_non_gc_bytes
word GC_free_space_divisor


Define Documentation

#define GC_FREE (  )     GC_free(p)

Definition at line 172 of file gc.h.

#define GC_MALLOC ( sz   )     GC_malloc(sz)

Definition at line 169 of file gc.h.

Referenced by chktree(), cons(), and mktree().

#define GC_MALLOC_ATOMIC ( sz   )     GC_malloc_atomic(sz)

Definition at line 170 of file gc.h.

Referenced by alloc_small().

#define GC_REALLOC ( old,
sz   )     GC_realloc(old, sz)

Definition at line 171 of file gc.h.

Referenced by reverse_test().

#define GC_REGISTER_FINALIZER ( p,
f,
d,
of,
od   )     GC_register_finalizer(p, f, d, of, od)

Definition at line 173 of file gc.h.

Referenced by mktree().


Typedef Documentation

typedef void(* GC_finalization_proc)()

Definition at line 187 of file gc.h.

typedef long signed_word

Definition at line 27 of file gc.h.

typedef unsigned long word

Definition at line 26 of file gc.h.


Function Documentation

void GC_add_roots (  ) 

char* GC_base (  ) 

Referenced by GC_debug_free(), GC_debug_realloc(), GC_mark_all_stack(), GC_print_obj(), GC_print_smashed_obj(), GC_register_disappearing_link(), GC_register_finalizer(), and GC_unregister_disappearing_link().

void GC_clear_roots (  ) 

Definition at line 122 of file mark_roots.c.

References DCL_LOCK_STATE, DISABLE_SIGNALS, ENABLE_SIGNALS, GC_root_size, LOCK, n_root_sets, and UNLOCK.

void GC_debug_free (  ) 

void GC_debug_invoke_finalizer (  ) 

char* GC_debug_malloc (  ) 

char* GC_debug_malloc_atomic (  ) 

char* GC_debug_realloc (  ) 

int GC_expand_hp (  ) 

void GC_free (  ) 

Referenced by clear_block(), clear_hasht(), emit(), GC_debug_free(), GC_realloc(), GC_register_disappearing_link(), GC_register_finalizer(), GC_unregister_disappearing_link(), read_instr(), and unsafe_free().

void GC_gcollect (  ) 

Definition at line 350 of file alloc.c.

References DCL_LOCK_STATE, DISABLE_SIGNALS, ENABLE_SIGNALS, GC_gcollect_inner(), GC_init_inner(), GC_is_initialized, GC_noop(), LOCK, TRUE, and UNLOCK.

char* GC_make_closure (  ) 

char* GC_malloc (  ) 

Referenced by add_vr(), dead_tmp(), GC_debug_malloc(), GC_make_closure(), GC_realloc(), lookup(), make_instr(), make_lbl_instr(), malloc(), and placeholder().

char* GC_malloc_atomic (  ) 

Referenced by C_name(), flatten(), GC_debug_malloc_atomic(), itos(), main(), malloc_atomic(), par_name(), rmcntrl(), str_eq(), and tmp_name().

char* GC_realloc (  ) 

Referenced by GC_debug_realloc(), and realloc().

int GC_register_disappearing_link (  ) 

void GC_register_displacement (  ) 

Referenced by GC_debug_malloc(), and GC_debug_malloc_atomic().

void GC_register_finalizer (  ) 

size_t GC_size (  ) 

Referenced by free(), GC_check_annotated_obj(), GC_has_debug_info(), GC_print_smashed_obj(), GC_register_finalizer(), GC_store_debug_info(), realloc(), and unsafe_free().

int GC_unregister_disappearing_link (  ) 


Variable Documentation

int GC_dont_expand

Definition at line 117 of file alloc.c.

Referenced by GC_gcollect_inner().

int GC_dont_gc

Definition at line 49 of file misc.c.

Referenced by GC_collect_or_expand(), and main().

word GC_free_space_divisor

Definition at line 119 of file alloc.c.

Referenced by min_words_allocd().

word GC_gc_no

Definition at line 75 of file alloc.c.

Referenced by GC_clear_stack(), and GC_gcollect_inner().

word GC_heapsize

word GC_non_gc_bytes

Definition at line 73 of file alloc.c.

Referenced by free(), GC_adj_words_allocd(), GC_gcollect_inner(), malloc(), malloc_atomic(), realloc(), and unsafe_free().


Generated on Fri Jan 25 10:39:48 2008 for russell by  doxygen 1.5.4