summaryrefslogtreecommitdiff
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
parentf5e45d00eba0807048491cc7d122bd0723ebafe4 (diff)
downloadruby-7f637ab96f841a7d03f5b544f1efae50920cc0bf.tar.gz
* 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
-rw-r--r--ChangeLog4
-rw-r--r--gc.c10
2 files changed, 4 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index fde75383cd..de82551610 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Jul 3 04:39:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (rb_during_gc): VALUE cache is irrelevant.
+
Thu Jul 3 01:44:01 2008 Yusuke Endoh <mame@tsg.ne.jp>
* regint.h (GET_ALIGNMENT_PAD_SIZE, ALIGNMENT_RIGHT): cast pointer to
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;
}