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

Go to the source code of this file.

Defines

#define LOG_TOP_SZ   11
#define LOG_BOTTOM_SZ   (WORDSZ - LOG_TOP_SZ - LOG_HBLKSIZE)
#define TOP_SZ   (1 << LOG_TOP_SZ)
#define BOTTOM_SZ   (1 << LOG_BOTTOM_SZ)
#define MAX_JUMP   (HBLKSIZE - 1)
#define HDR(p)
#define IS_FORWARDING_ADDR_OR_NIL(hhdr)   ((unsigned long) (hhdr) <= MAX_JUMP)
#define FORWARDED_ADDR(h, hhdr)   ((struct hblk *)(h) - (unsigned long)(hhdr))

Typedefs

typedef struct hblkhdr hdr

Variables

hdr ** GC_top_index []


Define Documentation

#define BOTTOM_SZ   (1 << LOG_BOTTOM_SZ)

Definition at line 18 of file gc_headers.h.

Referenced by GC_apply_to_all_blocks(), and GC_install_counts().

#define FORWARDED_ADDR ( h,
hhdr   )     ((struct hblk *)(h) - (unsigned long)(hhdr))

Definition at line 34 of file gc_headers.h.

#define HDR (  ) 

Value:

(GC_top_index \
                [(unsigned long)(p) >> (LOG_BOTTOM_SZ + LOG_HBLKSIZE)] \
                [((unsigned long)(p) >> LOG_HBLKSIZE) & (BOTTOM_SZ - 1)])

Definition at line 24 of file gc_headers.h.

Referenced by clear_marks_for_block(), GC_add_to_black_list_normal(), GC_add_to_black_list_stack(), GC_add_to_heap(), GC_allochblk(), GC_base(), GC_check_heap_block(), GC_clear_mark_bit(), GC_continue_reclaim(), GC_find_header(), GC_free(), GC_freehblk(), GC_gcollect_inner(), GC_install_counts(), GC_install_header(), GC_is_marked(), GC_mark(), GC_realloc(), GC_reclaim_block(), GC_reclaim_small_nonempty_block(), GC_remove_counts(), GC_remove_header(), GC_set_mark_bit(), GC_size(), and remark_block().

#define IS_FORWARDING_ADDR_OR_NIL ( hhdr   )     ((unsigned long) (hhdr) <= MAX_JUMP)

Definition at line 30 of file gc_headers.h.

Referenced by GC_apply_to_all_blocks(), GC_base(), and GC_mark().

#define LOG_BOTTOM_SZ   (WORDSZ - LOG_TOP_SZ - LOG_HBLKSIZE)

Definition at line 16 of file gc_headers.h.

Referenced by GC_apply_to_all_blocks(), and get_index().

#define LOG_TOP_SZ   11

Definition at line 15 of file gc_headers.h.

#define MAX_JUMP   (HBLKSIZE - 1)

Definition at line 20 of file gc_headers.h.

Referenced by GC_install_counts().

#define TOP_SZ   (1 << LOG_TOP_SZ)

Definition at line 17 of file gc_headers.h.

Referenced by GC_apply_to_all_blocks(), and GC_init_headers().


Typedef Documentation

typedef struct hblkhdr hdr

Definition at line 13 of file gc_headers.h.


Variable Documentation

hdr** GC_top_index[]

Definition at line 34 of file headers.c.


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