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

ruby-changes:40270

From: ko1 <ko1@a...>
Date: Thu, 29 Oct 2015 18:48:59 +0900 (JST)
Subject: [ruby-changes:40270] ko1:r52351 (trunk): * gc.c (gc_mark_ptr): specify NOINLINE so that gc_mark() can return

ko1	2015-10-29 18:48:38 +0900 (Thu, 29 Oct 2015)

  New Revision: 52351

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

  Log:
    * gc.c (gc_mark_ptr): specify NOINLINE so that gc_mark() can return
      immediately when obj is not a markable object.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52350)
+++ ChangeLog	(revision 52351)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Oct 29 18:42:30 2015  Koichi Sasada  <ko1@a...>
+
+	* gc.c (gc_mark_ptr): specify NOINLINE so that gc_mark() can return
+	  immediately when obj is not a markable object.
+
 Thu Oct 29 18:05:22 2015  Koichi Sasada  <ko1@a...>
 
 	* encoding.c (rb_enc_check_str): add for performance.
Index: gc.c
===================================================================
--- gc.c	(revision 52350)
+++ gc.c	(revision 52351)
@@ -4250,6 +4250,8 @@ gc_aging(rb_objspace_t *objspace, VALUE https://github.com/ruby/ruby/blob/trunk/gc.c#L4250
     objspace->marked_slots++;
 }
 
+NOINLINE(static void gc_mark_ptr(rb_objspace_t *objspace, VALUE obj));
+
 static void
 gc_mark_ptr(rb_objspace_t *objspace, VALUE obj)
 {

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

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