Skip to content

Commit

Permalink
skip scheduling a timer
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-conway committed Nov 22, 2024
1 parent 3fe6c4b commit 64fa224
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/JavaScriptCore/runtime/DeferredWorkTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ void DeferredWorkTimer::cancelPendingWork(VM& vm)
}
}
}

if (onCancelPendingWork) {
return;
}

// GC can be triggered before an invalid and scheduled ticket is fired. In that case,
// we also need to remove the corresponding pending task. Since doWork handles all cases
// for removal, we should let it handle that for consistency.
Expand Down

0 comments on commit 64fa224

Please sign in to comment.