Skip to content

Commit aa78141

Browse files
committedJul 17, 2015
Hold all threads before finishing finalizers on halt.
1 parent bef51ae commit aa78141

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎vm/environment.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -609,15 +609,15 @@ namespace rubinius {
609609
root_vm->set_call_frame(0);
610610
}
611611

612-
shared->finalizer_handler()->finish(state, gct);
613-
614612
root_vm->set_call_frame(0);
615613

616614
// Hold everyone.
617615
while(!state->stop_the_world()) {
618616
state->checkpoint(gct, 0);
619617
}
620618

619+
shared->finalizer_handler()->finish(state, gct);
620+
621621
NativeMethod::cleanup_thread(state);
622622

623623
state->shared().signals()->stop(state);

0 commit comments

Comments
 (0)