2009-10-19 Ivan Maidanski <ivmai@mail.ru>
+ * 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 <ivmai@mail.ru>
+
* extra/gc.c: New file.
* Makefile.am (EXTRA_DIST): Add "extra/gc.c".
* configure: Regenerate.
/* 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)();
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);
} 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);
}
}
/* 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);