Skip to content

Commit

Permalink
Disable Ruby finalizer again, no idea what goes on on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
dbussink committed Jan 8, 2013
1 parent 42ddcf2 commit b3cf685
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion vm/capi/data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace rubinius {
Data* data = as<Data>(object_);

if(data->freed_p()) {
rb_raise(rb_eArgError, "Data object has already been freed");
// rb_raise(rb_eArgError, "Data object has already been freed");
}

if(type_ == cRData) {
Expand Down
14 changes: 7 additions & 7 deletions vm/finalizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@ namespace rubinius {

// Rubinius specific code. If the finalizer is cTrue, then
// send the object the finalize message
if(fi->ruby_finalizer == cTrue) {
fi->object->send(state, call_frame, state->symbol("__finalize__"));
} else {
Array* ary = Array::create(state, 1);
ary->set(state, 0, fi->object->id(state));
fi->ruby_finalizer->send(state, call_frame, G(sym_call), ary);
}
//if(fi->ruby_finalizer == cTrue) {
// fi->object->send(state, call_frame, state->symbol("__finalize__"));
//} else {
// Array* ary = Array::create(state, 1);
// ary->set(state, 0, fi->object->id(state));
// fi->ruby_finalizer->send(state, call_frame, G(sym_call), ary);
//}
}

if(fi->finalizer) {
Expand Down
14 changes: 7 additions & 7 deletions vm/objectmemory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -988,13 +988,13 @@ namespace rubinius {
if(fi.ruby_finalizer) {
// Rubinius specific code. If the finalizer is cTrue, then
// send the object the finalize message
if(fi.ruby_finalizer == cTrue) {
fi.object->send(state, 0, state->symbol("__finalize__"));
} else {
Array* ary = Array::create(state, 1);
ary->set(state, 0, fi.object->id(state));
fi.ruby_finalizer->send(state, 0, G(sym_call), ary);
}
// if(fi.ruby_finalizer == cTrue) {
// fi.object->send(state, 0, state->symbol("__finalize__"));
// } else {
// Array* ary = Array::create(state, 1);
// ary->set(state, 0, fi.object->id(state));
// fi.ruby_finalizer->send(state, 0, G(sym_call), ary);
// }
}
if(fi.finalizer) {
(*fi.finalizer)(state, fi.object);
Expand Down

0 comments on commit b3cf685

Please sign in to comment.