-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kern: improve scheduler performance.
- Rewrite the priority_scan loop to generate simpler code with fewer bounds checks and panics. - Directly return a &Task from priority_scan and task::select, so that every user of task::select doesn't have to immediately turn around and bounds-check its returned usize against the task table. - Switch scheduling related operations to use &Task rather than &mut Task so that the return of task::select can alias other live pointers into the task table. (The use of &mut Task before was me being conservative.)
- Loading branch information
Showing
4 changed files
with
43 additions
and
42 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