Skip to content

Commit

Permalink
A bit of write_barrier cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Mar 30, 2016
1 parent 40f0f30 commit 089e9eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
4 changes: 1 addition & 3 deletions machine/builtin/tuple.hpp
Expand Up @@ -56,9 +56,7 @@ namespace rubinius {

Object* put(STATE, native_int idx, Object* val) {
field[idx] = val;
if(mature_object_p()) {
Tuple::write_barrier(state, this, val);
}
Tuple::write_barrier(state, this, val);
return val;
}

Expand Down
10 changes: 2 additions & 8 deletions machine/memory.hpp
Expand Up @@ -328,13 +328,9 @@ namespace rubinius {
obj->set_obj_type(type);

// set_klass:
obj->klass(klass);
obj->klass(state, klass);
obj->ivars(cNil);

if(obj->mature_object_p()) {
write_barrier(obj, klass);
}

obj->set_cycle(cycle_);

return obj;
Expand All @@ -359,11 +355,9 @@ namespace rubinius {
obj->set_pinned();
obj->set_obj_type(type);

obj->klass(klass);
obj->klass(state, klass);
obj->ivars(cNil);

write_barrier(obj, klass);

return obj;
}

Expand Down

0 comments on commit 089e9eb

Please sign in to comment.