summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-24 13:33:44 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-24 13:33:44 +0000
commitb317738edc3072bd0d4f92992c93267bb00abb93 (patch)
treec81d7ec7417ca3eeb7b4f271bc91ec4ff57eb02a /vm.c
parent8f5865e25163ca82b9608af58498e72f038f593f (diff)
* vm.c (ruby_vm_destruct, thread_memsize): fix argument type to make
RUBY_MARK_FREE_DEBUG available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/vm.c b/vm.c
index 2ff61aa645..fa028fd187 100644
--- a/vm.c
+++ b/vm.c
@@ -1480,10 +1480,11 @@ rb_vm_mark(void *ptr)
#define vm_free 0
int
-ruby_vm_destruct(rb_vm_t *vm)
+ruby_vm_destruct(void *ptr)
{
RUBY_FREE_ENTER("vm");
- if (vm) {
+ if (ptr) {
+ rb_vm_t *vm = ptr;
rb_thread_t *th = vm->main_thread;
#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
struct rb_objspace *objspace = vm->objspace;
@@ -1688,8 +1689,6 @@ thread_free(void *ptr)
static size_t
thread_memsize(const void *ptr)
{
- RUBY_FREE_ENTER("thread");
-
if (ptr) {
const rb_thread_t *th = ptr;
size_t size = sizeof(rb_thread_t);