diff options
Diffstat (limited to 'new_hblk.c')
-rw-r--r-- | new_hblk.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -28,7 +28,7 @@ * Set the last link to * be ofl. Return a pointer tpo the first free list entry. */ -ptr_t GC_build_fl_clear2(struct hblk *h, ptr_t ofl) +STATIC ptr_t GC_build_fl_clear2(struct hblk *h, ptr_t ofl) { word * p = (word *)(h -> hb_body); word * lim = (word *)(h + 1); @@ -48,7 +48,7 @@ ptr_t GC_build_fl_clear2(struct hblk *h, ptr_t ofl) } /* The same for size 4 cleared objects */ -ptr_t GC_build_fl_clear4(struct hblk *h, ptr_t ofl) +STATIC ptr_t GC_build_fl_clear4(struct hblk *h, ptr_t ofl) { word * p = (word *)(h -> hb_body); word * lim = (word *)(h + 1); @@ -68,7 +68,7 @@ ptr_t GC_build_fl_clear4(struct hblk *h, ptr_t ofl) } /* The same for size 2 uncleared objects */ -ptr_t GC_build_fl2(struct hblk *h, ptr_t ofl) +STATIC ptr_t GC_build_fl2(struct hblk *h, ptr_t ofl) { word * p = (word *)(h -> hb_body); word * lim = (word *)(h + 1); @@ -84,7 +84,7 @@ ptr_t GC_build_fl2(struct hblk *h, ptr_t ofl) } /* The same for size 4 uncleared objects */ -ptr_t GC_build_fl4(struct hblk *h, ptr_t ofl) +STATIC ptr_t GC_build_fl4(struct hblk *h, ptr_t ofl) { word * p = (word *)(h -> hb_body); word * lim = (word *)(h + 1); @@ -181,7 +181,6 @@ void GC_new_hblk(size_t gran, int kind) struct hblk *h; /* the new heap block */ GC_bool clear = GC_obj_kinds[kind].ok_init; - /* Ignore gcc "no effect" warning on the following: */ GC_STATIC_ASSERT((sizeof (struct hblk)) == HBLKSIZE); if (GC_debugging_started) clear = TRUE; |