Skip to content
Snippets Groups Projects
Commit 6e5b89e0 authored by Ilya Verbin's avatar Ilya Verbin Committed by Vladimir Davydov
Browse files

core: get rid of fiber_set_cancellable in gc_checkpoint_fiber_f

Spurious wakeups are already handled correctly.

Part of #7166

NO_DOC=refactoring
NO_TEST=refactoring
NO_CHANGELOG=refactoring
parent 4d52199e
No related branches found
No related tags found
No related merge requests found
......@@ -573,12 +573,6 @@ gc_checkpoint_fiber_f(va_list ap)
{
(void)ap;
/*
* Make the fiber non-cancellable so as not to bother
* about spurious wakeups.
*/
fiber_set_cancellable(false);
struct checkpoint_schedule *sched = &gc.checkpoint_schedule;
while (!fiber_is_cancelled()) {
double timeout = checkpoint_schedule_timeout(sched,
......@@ -597,7 +591,8 @@ gc_checkpoint_fiber_f(va_list ap)
if (!fiber_yield_timeout(timeout) &&
!gc.checkpoint_is_pending) {
/*
* The checkpoint schedule has changed.
* The checkpoint schedule has changed or the fiber has
* been woken up spuriously.
* Reschedule the next checkpoint.
*/
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment