mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* gc.c (newobj_of): don't need to RBASIC_SET_CLASS() which includes WB
here because created obj is always YOUNG/INFANT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2ad4a1600b
commit
9797647e25
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Dec 19 10:50:13 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* 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@atdot.net>
|
||||
|
||||
* benchmark/gc/gcbench.rb: check GC::OPTS availability
|
||||
|
|
2
gc.c
2
gc.c
|
@ -1291,7 +1291,7 @@ newobj_of(VALUE klass, VALUE flags, VALUE v1, VALUE v2, VALUE v3)
|
|||
|
||||
/* 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;
|
||||
|
|
Loading…
Add table
Reference in a new issue