#include "gc_private.h"
Go to the source code of this file.
Typedefs | |
typedef hdr * | bottom_index [BOTTOM_SZ] |
Functions | |
hdr * | GC_find_header (ptr_t h) |
ptr_t | GC_scratch_alloc (word bytes) |
static hdr * | alloc_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 hdr * | hdr_free_list = 0 |
typedef hdr* bottom_index[BOTTOM_SZ] |
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] |
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.
void GC_install_header | ( | struct hblk * | h | ) |
void GC_remove_header | ( | struct hblk * | h | ) |
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().
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] |
hdr* hdr_free_list = 0 [static] |
char* scratch_end_ptr = 0 [static] |
char* scratch_free_ptr = 0 [static] |