forked from theseus-os/Theseus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…heseus-os#630) * `task_switch()` now takes an owned `TaskRef` object for the `next` task instead of a `&Task`, which prevents that `next` `TaskRef` object from being on the stack frame of the `schedule()` function (or whatever other function may call `task_switch() in the future). * This avoids a rare issue where a task may not be immediately dropped upon exiting and being reaped, because a reference to that task might still persist as a local variable on a different task's stack, due to the way that `schedule()` previously invoked `task_switch()`. * This also more clearly states our intent in `task_switch()` by ensuring that `next` cannot be invalidly accessed after the context switch operation has returned. 0c6afd2
- Loading branch information
1 parent
421a877
commit 0174917
Showing
206 changed files
with
2,763 additions
and
1,001 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
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
Oops, something went wrong.