#include <stdio.h>
#include "gc_private.h"
Go to the source code of this file.
Defines | |
#define | DEBUG |
#define | MAX_BLACK_LIST_ALLOC (2*HBLKSIZE) |
Functions | |
static | setup_header (hdr *hhdr, word sz, int kind) |
struct hblk * | GC_allochblk (word sz, int kind) |
void | GC_freehblk (struct hblk *p) |
Variables | |
struct hblk * | GC_hblkfreelist = 0 |
struct hblk * | GC_savhbp = (struct hblk *)0 |
#define DEBUG |
Definition at line 12 of file allochblk.c.
#define MAX_BLACK_LIST_ALLOC (2*HBLKSIZE) |
Definition at line 72 of file allochblk.c.
References BYTES_TO_WORDS, bzero, FALSE, GC_install_counts(), GC_install_header(), GC_invalidate_map(), GC_is_black_listed(), GC_obj_kinds, hblkhdr::hb_next, hblkhdr::hb_sz, HBLKMASK, HBLKSIZE, HDR, HDR_BYTES, MAX_BLACK_LIST_ALLOC, MAXOBJSZ, PTRFREE, setup_header(), TRUE, and WORDS_TO_BYTES.
Referenced by GC_generic_malloc(), and GC_new_hblk().
void GC_freehblk | ( | struct hblk * | p | ) |
Definition at line 227 of file allochblk.c.
References GC_invalidate_map(), GC_printf1, GC_printf2, GC_remove_counts(), GC_remove_header(), hblkhdr::hb_next, hblkhdr::hb_sz, HBLKMASK, HBLKSIZE, HDR, HDR_BYTES, and WORDS_TO_BYTES.
Referenced by GC_add_to_heap(), GC_free(), and GC_reclaim_block().
Definition at line 43 of file allochblk.c.
References GC_add_map_entry(), GC_clear_hdr_marks(), GC_obj_kinds, GC_obj_map, MAXOBJSZ, and obj_kind::ok_mark_proc.
Referenced by GC_allochblk().
struct hblk* GC_hblkfreelist = 0 |
Definition at line 35 of file allochblk.c.
Definition at line 37 of file allochblk.c.