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

ruby-changes:40309

From: ko1 <ko1@a...>
Date: Fri, 30 Oct 2015 19:10:26 +0900 (JST)
Subject: [ruby-changes:40309] ko1:r52390 (trunk): * gc.c (heap_get_freeobj_from_next_freepage): not so UNLIKELY.

ko1	2015-10-30 19:09:50 +0900 (Fri, 30 Oct 2015)

  New Revision: 52390

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

  Log:
    * gc.c (heap_get_freeobj_from_next_freepage): not so UNLIKELY.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52389)
+++ ChangeLog	(revision 52390)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Oct 30 19:08:48 2015  Koichi Sasada  <ko1@a...>
+
+	* gc.c (heap_get_freeobj_from_next_freepage): not so UNLIKELY.
+
 Fri Oct 30 18:09:51 2015  Koichi Sasada  <ko1@a...>
 
 	* gc.c (newobj_slowpath): reduce 1 parameter to use only registers
Index: gc.c
===================================================================
--- gc.c	(revision 52389)
+++ gc.c	(revision 52390)
@@ -1641,7 +1641,7 @@ heap_get_freeobj_from_next_freepage(rb_o https://github.com/ruby/ruby/blob/trunk/gc.c#L1641
     struct heap_page *page;
     RVALUE *p;
 
-    while (UNLIKELY(heap->free_pages == NULL)) {
+    while (heap->free_pages == NULL) {
 	heap_prepare(objspace, heap);
     }
     page = heap->free_pages;

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

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