fix: 修正进程pcb的on_cpu
字段未设置导致的panic问题
#1057
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
解决了 #1047 发生panic的问题。
但是,仍然存在问题:
按照 #1047 的方法尝试,当问题复现时,可以注意到,是卡了一下子,然后输出panic信息。
本pr改完之后,按照 #1047 进行尝试,不会panic,但是问题触发时,会卡一下,然后完全卡死。gdb看到在idle进程。
因此怀疑是调度有点问题?
@GnoCiYeH @val213