From 8f1c81c610eb11b74f52fa1ae0a6b704ebced43e Mon Sep 17 00:00:00 2001 From: nari Date: Sun, 5 Aug 2012 12:12:45 +0000 Subject: * gc.c : if ENABLE_VM_OBJSPACE is 1, rest_sweep is not defined. remove unused declarations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ gc.c | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5607683ae4..1f0372776e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Aug 5 21:10:36 2012 Narihiro Nakamura + + * gc.c : if ENABLE_VM_OBJSPACE is 1, rest_sweep is not defined. + remove unused declarations. + Sun Aug 5 19:31:57 2012 Narihiro Nakamura * gc.c: just move functions and so on. I don't touch any internal diff --git a/gc.c b/gc.c index 84fae87297..c1460796dd 100644 --- a/gc.c +++ b/gc.c @@ -346,6 +346,7 @@ static VALUE lazy_sweep_enable(void); static int garbage_collect(rb_objspace_t *); static int gc_lazy_sweep(rb_objspace_t *); static void mark_tbl(rb_objspace_t *, st_table *, int); +static void rest_sweep(rb_objspace_t *); static double getrusage_time(void); static inline void gc_prof_timer_start(rb_objspace_t *); @@ -377,9 +378,6 @@ rb_objspace_alloc(void) #endif #if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE -static void gc_sweep(rb_objspace_t *); -static void slot_sweep(rb_objspace_t *, struct heaps_slot *); -static void rest_sweep(rb_objspace_t *); static void aligned_free(void *); void -- cgit v1.2.3