-
Notifications
You must be signed in to change notification settings - Fork 47k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid "previous current" work-in-progress scenario
It's possible for a work-in-progress fiber to be the most progressed work (last fiber whose children were reconciled) but be older than the current commit. This scenario, where the work-in-progress fiber is really the "previous current," happens after a bailout. To avoid, in addition to keeping track of the most progressed fiber, we also keep track of the most recent fiber to enter the begin phase, regardless of whether it bailed out. Then we only resume on the work- in-progress if its the most recent fiber. It'd be nice to come up with a heuristic here that didn't require an additional fiber field. Also, the naming of "progressedWork" versus "newestWork" is not great. Maybe "lastUpdatedWork" and "lastUpdatedOrBailedOutWork"? We can bikeshed later.
- Loading branch information
Showing
3 changed files
with
51 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters