File tree 2 files changed +3
-11
lines changed
2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,7 @@ namespace rubinius {
56
56
57
57
Object* put (STATE, native_int idx, Object* val) {
58
58
field[idx] = val;
59
- if (mature_object_p ()) {
60
- Tuple::write_barrier (state, this , val);
61
- }
59
+ Tuple::write_barrier (state, this , val);
62
60
return val;
63
61
}
64
62
Original file line number Diff line number Diff line change @@ -328,13 +328,9 @@ namespace rubinius {
328
328
obj->set_obj_type (type);
329
329
330
330
// set_klass:
331
- obj->klass (klass);
331
+ obj->klass (state, klass);
332
332
obj->ivars (cNil);
333
333
334
- if (obj->mature_object_p ()) {
335
- write_barrier (obj, klass);
336
- }
337
-
338
334
obj->set_cycle (cycle_);
339
335
340
336
return obj;
@@ -359,11 +355,9 @@ namespace rubinius {
359
355
obj->set_pinned ();
360
356
obj->set_obj_type (type);
361
357
362
- obj->klass (klass);
358
+ obj->klass (state, klass);
363
359
obj->ivars (cNil);
364
360
365
- write_barrier (obj, klass);
366
-
367
361
return obj;
368
362
}
369
363
You can’t perform that action at this time.
0 commit comments