From f290f196b01ddf5ecd055822c0dea4d625d91872 Mon Sep 17 00:00:00 2001 From: ivmai Date: Mon, 19 Oct 2009 11:32:44 +0000 Subject: [PATCH] 2009-10-19 Ivan Maidanski * alloc.c (GC_notify_full_gc): Use GC_INLINE for a tiny static function. * backgraph.c (pop_in_progress, GC_apply_to_each_object): Ditto. * mark_rts.c (add_roots_to_index): Ditto. --- ChangeLog | 7 +++++++ alloc.c | 2 +- backgraph.c | 4 ++-- mark_rts.c | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 169c777e..82f95010 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-10-19 Ivan Maidanski + + * alloc.c (GC_notify_full_gc): Use GC_INLINE for a tiny static + function. + * backgraph.c (pop_in_progress, GC_apply_to_each_object): Ditto. + * mark_rts.c (add_roots_to_index): Ditto. + 2009-10-19 Ivan Maidanski * extra/gc.c: New file. diff --git a/alloc.c b/alloc.c index 4542f248..5a95308d 100644 --- a/alloc.c +++ b/alloc.c @@ -295,7 +295,7 @@ GC_bool GC_should_collect(void) /* Not called if 0. Called with the allocation */ /* lock held. Not used by GC itself. */ -STATIC void GC_notify_full_gc(void) +GC_INLINE void GC_notify_full_gc(void) { if (GC_start_call_back != 0) { (*GC_start_call_back)(); diff --git a/backgraph.c b/backgraph.c index c3cea439..902db90c 100644 --- a/backgraph.c +++ b/backgraph.c @@ -159,7 +159,7 @@ static GC_bool is_in_progress(ptr_t p) return FALSE; } -static void pop_in_progress(ptr_t p) +GC_INLINE void pop_in_progress(ptr_t p) { --n_in_progress; GC_ASSERT(in_progress_space[n_in_progress] == p); @@ -280,7 +280,7 @@ static void per_object_helper(struct hblk *h, word fn) } while (i + (int)sz <= BYTES_TO_WORDS(HBLKSIZE)); } -void GC_apply_to_each_object(per_object_func f) +GC_INLINE void GC_apply_to_each_object(per_object_func f) { GC_apply_to_all_blocks(per_object_helper, (word)f); } diff --git a/mark_rts.c b/mark_rts.c index 8a55e373..a2d15f7d 100644 --- a/mark_rts.c +++ b/mark_rts.c @@ -122,7 +122,7 @@ struct roots * GC_roots_present(ptr_t b) } /* Add the given root structure to the index. */ -static void add_roots_to_index(struct roots *p) +GC_INLINE void add_roots_to_index(struct roots *p) { int h = rt_hash(p -> r_start); -- 2.40.0