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

ruby-changes:40311

From: ko1 <ko1@a...>
Date: Fri, 30 Oct 2015 19:30:56 +0900 (JST)
Subject: [ruby-changes:40311] ko1:r52392 (trunk): * gc.c (newobj_slowpath): do not need to use flags hack (commit miss).

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

  New Revision: 52392

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

  Log:
    * gc.c (newobj_slowpath): do not need to use flags hack (commit miss).

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52391)
+++ ChangeLog	(revision 52392)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Oct 30 19:29:52 2015  Koichi Sasada  <ko1@a...>
+
+	* gc.c (newobj_slowpath): do not need to use flags hack (commit miss).
+
 Fri Oct 30 19:08:48 2015  Koichi Sasada  <ko1@a...>
 
 	* gc.c (heap_get_freeobj_from_next_freepage): not so UNLIKELY.
Index: gc.c
===================================================================
--- gc.c	(revision 52391)
+++ gc.c	(revision 52392)
@@ -1807,7 +1807,7 @@ newobj_slowpath(VALUE klass, VALUE flags https://github.com/ruby/ruby/blob/trunk/gc.c#L1807
     }
 
     obj = heap_get_freeobj(objspace, heap_eden);
-    newobj_init(klass, (flags & ~FL_WB_PROTECTED), v1, v2, v3, (flags & FL_WB_PROTECTED) ? TRUE : FALSE, objspace, obj);
+    newobj_init(klass, flags, v1, v2, v3, wb_protected, objspace, obj);
     gc_event_hook(objspace, RUBY_INTERNAL_EVENT_NEWOBJ, obj);
     return obj;
 }

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

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