summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-02 19:39:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-02 19:39:33 +0000
commit7f637ab96f841a7d03f5b544f1efae50920cc0bf (patch)
treef84e34b3e24a227c682bcde81dc68937cdd250b0 /gc.c
parentf5e45d00eba0807048491cc7d122bd0723ebafe4 (diff)
* gc.c (rb_during_gc): VALUE cache is irrelevant.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gc.c b/gc.c
index a915df8516..534369df4c 100644
--- a/gc.c
+++ b/gc.c
@@ -726,17 +726,7 @@ rb_fill_value_cache(rb_thread_t *th)
int
rb_during_gc(void)
{
-#if USE_VALUE_CACHE
- rb_thread_t *th = GET_THREAD();
- VALUE v = *th->value_cache_ptr;
-#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
- rb_objspace_t *objspace = th->vm->objspace;
-#else
rb_objspace_t *objspace = &rb_objspace;
-#endif
-#else
- rb_objspace_t *objspace = &rb_objspace;
-#endif
return during_gc;
}