summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-03 01:01:12 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-03 01:01:12 +0000
commitf6b2490fdb7d30d0c4ab37d63801f969c1aad4d5 (patch)
treecea218f64e6479efd64a3e21332bc4d7f492f7e7 /vm.c
parent2d189f672b21968ef9dbd27a2bddcfea146595c1 (diff)
* gc.c, vm.c, vm_core.h: remove USE_VALUE_CACHE option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/vm.c b/vm.c
index 7387656136..980e7eab9f 100644
--- a/vm.c
+++ b/vm.c
@@ -1709,18 +1709,6 @@ thread_free(void *ptr)
st_free_table(th->local_storage);
}
-#if USE_VALUE_CACHE
- {
- VALUE *ptr = th->value_cache_ptr;
- while (*ptr) {
- VALUE v = *ptr;
- RBASIC(v)->flags = 0;
- RBASIC(v)->klass = 0;
- ptr++;
- }
- }
-#endif
-
if (th->vm && th->vm->main_thread == th) {
RUBY_GC_INFO("main thread\n");
}
@@ -1796,10 +1784,6 @@ th_init2(rb_thread_t *th, VALUE self)
th->status = THREAD_RUNNABLE;
th->errinfo = Qnil;
th->last_status = Qnil;
-
-#if USE_VALUE_CACHE
- th->value_cache_ptr = &th->value_cache[0];
-#endif
}
static void