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

ruby-changes:40935

From: normal <ko1@a...>
Date: Thu, 10 Dec 2015 04:59:21 +0900 (JST)
Subject: [ruby-changes:40935] normal:r53014 (trunk): proc.c: remove bm_free, use default

normal	2015-12-10 04:58:48 +0900 (Thu, 10 Dec 2015)

  New Revision: 53014

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

  Log:
    proc.c: remove bm_free, use default
    
    bm_free no longer has special handling of unlinked method
    entries since r50728 when method entries were made VALUEs
    for GC safety.
    
    * proc.c (bm_free): remove, use default free
      (method_data_type): use RUBY_TYPED_DEFAULT_FREE

  Modified files:
    trunk/ChangeLog
    trunk/proc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53013)
+++ ChangeLog	(revision 53014)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Dec 10 04:49:16 2015  Eric Wong  <e@8...>
+
+	* proc.c (bm_free): remove, use default free
+	  (method_data_type): use RUBY_TYPED_DEFAULT_FREE
+
 Thu Dec 10 02:01:41 2015  Koichi Sasada  <ko1@a...>
 
 	* compile.c (iseq_compile_each): do not add debug information
Index: proc.c
===================================================================
--- proc.c	(revision 53013)
+++ proc.c	(revision 53014)
@@ -1194,12 +1194,6 @@ bm_mark(void *ptr) https://github.com/ruby/ruby/blob/trunk/proc.c#L1194
     rb_gc_mark((VALUE)data->me);
 }
 
-static void
-bm_free(void *ptr)
-{
-    xfree(ptr);
-}
-
 static size_t
 bm_memsize(const void *ptr)
 {
@@ -1210,7 +1204,7 @@ static const rb_data_type_t method_data_ https://github.com/ruby/ruby/blob/trunk/proc.c#L1204
     "method",
     {
 	bm_mark,
-	bm_free,
+	RUBY_TYPED_DEFAULT_FREE,
 	bm_memsize,
     },
     0, 0, RUBY_TYPED_FREE_IMMEDIATELY

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

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