Skip to content

Commit

Permalink
Re-added Rubinius define_finalizer extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Jun 5, 2016
1 parent bfa951d commit 5fe293b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion machine/memory/finalizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,12 @@ namespace rubinius {
}
}

add_finalizer(state, new ManagedFinalizer(state, obj, finalizer));
/* Rubinius specific API. If the finalizer is the object, we're going to
* send the object __finalize__. We mark that the user wants this by
* putting cTrue as the ruby_finalizer.
*/
add_finalizer(state, new ManagedFinalizer(state, obj,
obj == finalizer ? cTrue : finalizer));
}

void FinalizerThread::add_finalizer(STATE, FinalizerObject* obj) {
Expand Down

0 comments on commit 5fe293b

Please sign in to comment.