Skip to content

Commit

Permalink
Hold all threads before finishing finalizers on halt.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Jul 17, 2015
1 parent bef51ae commit aa78141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vm/environment.cpp
Expand Up @@ -609,15 +609,15 @@ namespace rubinius {
root_vm->set_call_frame(0);
}

shared->finalizer_handler()->finish(state, gct);

root_vm->set_call_frame(0);

// Hold everyone.
while(!state->stop_the_world()) {
state->checkpoint(gct, 0);
}

shared->finalizer_handler()->finish(state, gct);

NativeMethod::cleanup_thread(state);

state->shared().signals()->stop(state);
Expand Down

0 comments on commit aa78141

Please sign in to comment.