Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensure to unlock the thread object when running thread

  • Loading branch information...
commit 88402f1ea20add12aa741ad770a31525f1b91a90 1 parent fcaf1f9
@dbussink dbussink authored
Showing with 5 additions and 2 deletions.
  1. +3 −2 vm/objectmemory.cpp
  2. +2 −0  vm/signal.cpp
View
5 vm/objectmemory.cpp
@@ -974,6 +974,9 @@ namespace rubinius {
CallFrame* call_frame = 0;
utilities::thread::Thread::set_os_name("rbx.finalizer");
+ GCTokenImpl gct;
+ state->vm()->thread->hard_unlock(state, gct);
+
// Forever
for(;;) {
FinalizeObject* fi;
@@ -1028,8 +1031,6 @@ namespace rubinius {
fi->status = FinalizeObject::eFinalized;
}
- GCTokenImpl gct;
-
state->checkpoint(gct, 0);
}
View
2  vm/signal.cpp
@@ -143,6 +143,8 @@ namespace rubinius {
GCTokenImpl gct;
utilities::thread::Thread::set_os_name("rbx.signal-dispatch");
+ state->vm()->thread->hard_unlock(state, gct);
+
for(;;) {
fd_set fds;
FD_ZERO(&fds);
Please sign in to comment.
Something went wrong with that request. Please try again.