From 9797647e2546d44126e5d955e394c300a48d4201 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 19 Dec 2013 01:51:16 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ gc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c80eeb594f..5642e5d5a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Dec 19 10:50:13 2013 Koichi Sasada + + * 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 * benchmark/gc/gcbench.rb: check GC::OPTS availability diff --git a/gc.c b/gc.c index 3082956b8f..80ec4a3e88 100644 --- a/gc.c +++ b/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;