Skip to content

Commit

Permalink
Add check for unhandled case in gc_safepoint; return 0 in thread_yield
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryvk committed Jul 8, 2010
1 parent b47cca8 commit 3f21834
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/runtime/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,8 @@ void gc_safepoint()
} else {
suspend_briefly();
}
} else {
lose("in gc_safepoint, fell through");
}
}

Expand Down Expand Up @@ -1262,6 +1264,7 @@ thread_yield()
#ifdef LISP_FEATURE_SB_THREAD
#if defined(LISP_FEATURE_WIN32)
SwitchToThread();
return 0;
#else
return sched_yield();
#endif
Expand Down

0 comments on commit 3f21834

Please sign in to comment.