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

ruby-changes:31385

From: ko1 <ko1@a...>
Date: Tue, 29 Oct 2013 18:47:10 +0900 (JST)
Subject: [ruby-changes:31385] ko1:r43464 (trunk): * vm_trace.c (tp_free): remvoed because empty free function.

ko1	2013-10-29 18:47:06 +0900 (Tue, 29 Oct 2013)

  New Revision: 43464

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

  Log:
    * vm_trace.c (tp_free): remvoed because empty free function.
      Use RUBY_TYPED_NEVER_FREE instead.

  Modified files:
    trunk/ChangeLog
    trunk/vm_trace.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43463)
+++ ChangeLog	(revision 43464)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Oct 29 18:45:08 2013  Koichi Sasada  <ko1@a...>
+
+	* vm_trace.c (tp_free): remvoed because empty free function.
+	  Use RUBY_TYPED_NEVER_FREE instead.
+
 Tue Oct 29 18:37:33 2013  Koichi Sasada  <ko1@a...>
 
 	* include/ruby/ruby.h: introduce new flags for T_TYPEDDATA.
Index: vm_trace.c
===================================================================
--- vm_trace.c	(revision 43463)
+++ vm_trace.c	(revision 43464)
@@ -621,12 +621,6 @@ tp_mark(void *ptr) https://github.com/ruby/ruby/blob/trunk/vm_trace.c#L621
     }
 }
 
-static void
-tp_free(void *ptr)
-{
-    /* do nothing */
-}
-
 static size_t
 tp_memsize(const void *ptr)
 {
@@ -635,7 +629,7 @@ tp_memsize(const void *ptr) https://github.com/ruby/ruby/blob/trunk/vm_trace.c#L629
 
 static const rb_data_type_t tp_data_type = {
     "tracepoint",
-    {tp_mark, tp_free, tp_memsize,},
+    {tp_mark, RUBY_TYPED_NEVER_FREE, tp_memsize,},
 };
 
 static VALUE

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

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