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

ruby-changes:39674

From: ko1 <ko1@a...>
Date: Fri, 4 Sep 2015 04:48:30 +0900 (JST)
Subject: [ruby-changes:39674] ko1:r51755 (trunk): * iseq.c (iseq_memsize): functions for wrapper object should have

ko1	2015-09-04 04:48:12 +0900 (Fri, 04 Sep 2015)

  New Revision: 51755

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

  Log:
    * iseq.c (iseq_memsize): functions for wrapper object should have
      iseqw_ prefix.

  Modified files:
    trunk/ChangeLog
    trunk/iseq.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51754)
+++ ChangeLog	(revision 51755)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Sep  4 04:46:54 2015  Koichi Sasada  <ko1@a...>
+
+	* iseq.c (iseq_memsize): functions for wrapper object should have
+	  iseqw_ prefix.
+
 Thu Sep  3 21:12:12 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* lib/cgi/session.rb (create_new_id): use SHA512 instead of MD5.
Index: iseq.c
===================================================================
--- iseq.c	(revision 51754)
+++ iseq.c	(revision 51755)
@@ -143,9 +143,8 @@ param_keyword_size(const struct rb_iseq_ https://github.com/ruby/ruby/blob/trunk/iseq.c#L143
 }
 
 static size_t
-iseq_memsize(const void *ptr)
+iseq_memsize(const rb_iseq_t *iseq)
 {
-    const rb_iseq_t *iseq = ptr;
     size_t size = 0; /* struct already counted as RVALUE size */
     const struct rb_iseq_variable_body *variable_body;
     const struct rb_iseq_constant_body *body;
@@ -681,9 +680,15 @@ iseqw_mark(void *ptr) https://github.com/ruby/ruby/blob/trunk/iseq.c#L680
     rb_gc_mark((VALUE)ptr);
 }
 
+static size_t
+iseqw_memsize(const void *ptr)
+{
+    return iseq_memsize((const rb_iseq_t *)ptr);
+}
+
 static const rb_data_type_t iseqw_data_type = {
     "T_IMEMO/iseq",
-    {iseqw_mark, NULL, iseq_memsize,},
+    {iseqw_mark, NULL, iseqw_memsize,},
     0, 0, RUBY_TYPED_FREE_IMMEDIATELY|RUBY_TYPED_WB_PROTECTED
 };
 

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

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