Skip to content

Commit

Permalink
Handle encountering a destroyed thread.
Browse files Browse the repository at this point in the history
In the work passing, we can of course never pass to it, but should not
explode.
  • Loading branch information
jnthn committed Mar 10, 2014
1 parent 8d607e5 commit 7dc247d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gc/collect.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ static void push_work_to_thread_in_tray(MVMThreadContext *tc, MVMuint32 target,
else {
MVMThread *t = (MVMThread *)MVM_load(&tc->instance->threads);
do {
if (t->body.tc->thread_id == target) {
if (t->body.tc && t->body.tc->thread_id == target) {
target_tc = t->body.tc;
break;
}
Expand Down

0 comments on commit 7dc247d

Please sign in to comment.