summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-16 09:06:52 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-16 09:06:52 +0000
commit88722e6a5dc9881e7d4a54e4cd90f5b4ebbb609c (patch)
tree6e962f4ac412c1c1c34ca4fec1badbf505b10a99 /vm.c
parent64c81e40d4706d3685d540febb06e28609641aa4 (diff)
* gc.c (gc_mark_roots): call rb_vm_mark directly.
* vm.c: remove mark function for RubyVM object because RubyVM object marked manually. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vm.c b/vm.c
index c33f16a..4e0ea41 100644
--- a/vm.c
+++ b/vm.c
@@ -1790,8 +1790,6 @@ rb_vm_add_root_module(ID id, VALUE module)
return TRUE;
}
-#define vm_free 0
-
int
ruby_vm_destruct(rb_vm_t *vm)
{
@@ -1844,7 +1842,7 @@ vm_memsize(const void *ptr)
static const rb_data_type_t vm_data_type = {
"VM",
- {rb_vm_mark, vm_free, vm_memsize,},
+ {NULL, NULL, vm_memsize,},
NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
};