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

#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 hblkGC_allochblk (word sz, int kind)
void GC_freehblk (struct hblk *p)

Variables

struct hblkGC_hblkfreelist = 0
struct hblkGC_savhbp = (struct hblk *)0


Define Documentation

#define DEBUG

Definition at line 12 of file allochblk.c.

#define MAX_BLACK_LIST_ALLOC   (2*HBLKSIZE)

Definition at line 31 of file allochblk.c.

Referenced by GC_allochblk().


Function Documentation

struct hblk* GC_allochblk ( word  sz,
int  kind 
) [read]

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().

static setup_header ( hdr hhdr,
word  sz,
int  kind 
) [static]

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().


Variable Documentation

struct hblk* GC_hblkfreelist = 0

Definition at line 35 of file allochblk.c.

struct hblk* GC_savhbp = (struct hblk *)0

Definition at line 37 of file allochblk.c.


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