[前][次][番号順一覧][スレッド一覧]

ruby-changes:14094

From: mame <ko1@a...>
Date: Tue, 24 Nov 2009 22:34:02 +0900 (JST)
Subject: [ruby-changes:14094] Ruby:r25908 (trunk): * vm.c (ruby_vm_destruct, thread_memsize): fix argument type to make

mame	2009-11-24 22:33:44 +0900 (Tue, 24 Nov 2009)

  New Revision: 25908

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25908

  Log:
    * vm.c (ruby_vm_destruct, thread_memsize): fix argument type to make
      RUBY_MARK_FREE_DEBUG available.

  Modified files:
    trunk/ChangeLog
    trunk/vm.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25907)
+++ ChangeLog	(revision 25908)
@@ -1,3 +1,8 @@
+Tue Nov 24 22:31:44 2009  Yusuke Endoh  <mame@t...>
+
+	* vm.c (ruby_vm_destruct, thread_memsize): fix argument type to make
+	  RUBY_MARK_FREE_DEBUG available.
+
 Tue Nov 24 21:25:21 2009  Tanaka Akira  <akr@f...>
 
 	* error.c: include errno.h at beginning.
Index: vm.c
===================================================================
--- vm.c	(revision 25907)
+++ vm.c	(revision 25908)
@@ -1480,10 +1480,11 @@
 #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 @@
 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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]