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

#include "gc_private.h"

Go to the source code of this file.

Typedefs

typedef hdrbottom_index [BOTTOM_SZ]

Functions

hdrGC_find_header (ptr_t h)
ptr_t GC_scratch_alloc (word bytes)
static hdralloc_hdr ()
static void free_hdr (hdr *hhdr)
 GC_init_headers ()
static void get_index (word addr)
void GC_install_header (struct hblk *h)
void GC_install_counts (struct hblk *h, word sz)
void GC_remove_header (struct hblk *h)
void GC_remove_counts (struct hblk *h, word sz)
void GC_apply_to_all_blocks (void(*fn)(), word client_data)

Variables

hdr ** GC_top_index [TOP_SZ]
static bottom_index all_nils = { 0 }
static char * scratch_free_ptr = 0
static char * scratch_end_ptr = 0
static hdrhdr_free_list = 0


Typedef Documentation

typedef hdr* bottom_index[BOTTOM_SZ]

Definition at line 36 of file headers.c.


Function Documentation

static hdr* alloc_hdr (  )  [static]

Definition at line 93 of file headers.c.

References GC_scratch_alloc().

Referenced by GC_install_header().

static void free_hdr ( hdr hhdr  )  [static]

Definition at line 106 of file headers.c.

Referenced by GC_remove_header().

void GC_apply_to_all_blocks ( void (*)()  fn,
word  client_data 
)

Definition at line 185 of file headers.c.

References all_nils, BOTTOM_SZ, GC_invalid_map, IS_FORWARDING_ADDR_OR_NIL, LOG_BOTTOM_SZ, LOG_HBLKSIZE, and TOP_SZ.

hdr* GC_find_header ( ptr_t  h  ) 

Definition at line 50 of file headers.c.

References HDR.

GC_init_headers (  ) 

Definition at line 113 of file headers.c.

References all_nils, and TOP_SZ.

void GC_install_counts ( struct hblk h,
word  sz 
)

Definition at line 146 of file headers.c.

References BOTTOM_SZ, get_index(), HDR, and MAX_JUMP.

void GC_install_header ( struct hblk h  ) 

Definition at line 138 of file headers.c.

References alloc_hdr(), get_index(), and HDR.

void GC_remove_counts ( struct hblk h,
word  sz 
)

Definition at line 172 of file headers.c.

References HDR.

void GC_remove_header ( struct hblk h  ) 

Definition at line 164 of file headers.c.

References free_hdr(), and HDR.

ptr_t GC_scratch_alloc ( word  bytes  ) 

Definition at line 63 of file headers.c.

References GC_err_printf0, GC_scratch_alloc(), GET_MEM, HBLKSIZE, HINCR, scratch_end_ptr, and scratch_free_ptr.

static void get_index ( word  addr  )  [static]

Definition at line 123 of file headers.c.

References all_nils, bzero, GC_scratch_alloc(), LOG_BOTTOM_SZ, and LOG_HBLKSIZE.

Referenced by GC_install_counts(), and GC_install_header().


Variable Documentation

bottom_index all_nils = { 0 } [static]

Definition at line 47 of file headers.c.

Referenced by GC_apply_to_all_blocks(), GC_init_headers(), and get_index().

hdr** GC_top_index[TOP_SZ]

Definition at line 34 of file headers.c.

hdr* hdr_free_list = 0 [static]

Definition at line 90 of file headers.c.

char* scratch_end_ptr = 0 [static]

Definition at line 61 of file headers.c.

Referenced by GC_scratch_alloc().

char* scratch_free_ptr = 0 [static]

Definition at line 59 of file headers.c.

Referenced by GC_scratch_alloc().


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