aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-05 12:12:45 +0000
committernari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-05 12:12:45 +0000
commit8f1c81c610eb11b74f52fa1ae0a6b704ebced43e (patch)
treee6535b8487bccdc8cf761bde14f61ba324abeede
parentdd124a0f841f2e25daa4f4e3c9854618176a7743 (diff)
downloadruby-8f1c81c610eb11b74f52fa1ae0a6b704ebced43e.tar.gz
* 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
-rw-r--r--ChangeLog5
-rw-r--r--gc.c4
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 <authornari@gmail.com>
+
+ * 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 <authornari@gmail.com>
* 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