ruby-changes:32205
From: ko1 <ko1@a...>
Date: Thu, 19 Dec 2013 10:51:20 +0900 (JST)
Subject: [ruby-changes:32205] ko1:r44284 (trunk): * gc.c (newobj_of): don't need to RBASIC_SET_CLASS() which includes WB
ko1 2013-12-19 10:51:16 +0900 (Thu, 19 Dec 2013) New Revision: 44284 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44284 Log: * gc.c (newobj_of): don't need to RBASIC_SET_CLASS() which includes WB here because created obj is always YOUNG/INFANT. Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 44283) +++ ChangeLog (revision 44284) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Dec 19 10:50:13 2013 Koichi Sasada <ko1@a...> + + * gc.c (newobj_of): don't need to RBASIC_SET_CLASS() which includes WB + here because created obj is always YOUNG/INFANT. + Thu Dec 19 10:48:37 2013 Koichi Sasada <ko1@a...> * benchmark/gc/gcbench.rb: check GC::OPTS availability Index: gc.c =================================================================== --- gc.c (revision 44283) +++ gc.c (revision 44284) @@ -1291,7 +1291,7 @@ newobj_of(VALUE klass, VALUE flags, VALU https://github.com/ruby/ruby/blob/trunk/gc.c#L1291 /* OBJSETUP */ RBASIC(obj)->flags = flags; - RBASIC_SET_CLASS(obj, klass); + RBASIC_SET_CLASS_RAW(obj, klass); if (rb_safe_level() >= 3) FL_SET((obj), FL_TAINT); RANY(obj)->as.values.v1 = v1; RANY(obj)->as.values.v2 = v2; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/