summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-11 10:34:09 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-11 10:34:09 (GMT)
commitc653db51b0b32bea9a8469dbc236538b011cc0b1 (patch)
tree42fb7ba284908c97f4983772ea519e3924a73a73 /vm.c
parent51101947bb964dde5808a8a9bd8b67879498f58f (diff)
* gc.c (rb_gc_mark_values): added.
This function is similar to rb_gc_mark_locations(), but not conservertive. * internal.h: ditto. * vm.c (env_mark): use rb_gc_mark_values() because env values should be Ruby VALUEs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 7738220..aeac7ee 100644
--- a/vm.c
+++ b/vm.c
@@ -356,7 +356,7 @@ env_mark(void * const ptr)
/* TODO: should mark more restricted range */
RUBY_GC_INFO("env->env\n");
- rb_gc_mark_locations(env->env, env->env + env->env_size);
+ rb_gc_mark_values((long)env->env_size, env->env);
RUBY_GC_INFO("env->prev_envval\n");
RUBY_MARK_UNLESS_NULL(env->prev_envval);