[BUG] Eviction re-homing search in prvSelectHighestPriorityTask can prune eligible cores for the evicted task

未关闭
#1,506 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

@StitchLilo626 已经在做这个了。

开始于 2026年10月21日。

  • #1523 来自 @StitchLilo626 —— 未关闭

评估

难度
4/5
预计耗时
3-5 天
新手友好度
22/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
c

调研方向

The bug is in the eviction re-homing search inside prvSelectHighestPriorityTask(), which runs after a task is evicted from a core and checks pxPreviousTCB against core affinity. Start by reading that search and the affinity-mask check it uses, and confirm which mask it tests against. No reproduction harness is attached, so you would need to build one first. Done means the search considers every core allowed by the evicted task's own mask, with a test showing the evicted task is re-homed.

由索引模型根据 Issue 内容生成。

描述

Describe the bug

The eviction re-homing path in prvSelectHighestPriorityTask() (the pxPreviousTCB re-homing search after a task is evicted from a core) skips cores on which the incoming task may run, based on a premise that does not hold for the evicted task's own new affinity mask. The evicted task can be left without a re-homing core even though one is eligible.

Impact

Bounded unfairness - the evicted task runs at a later selection. No hang, no corruption, no starvation of the kind reported in #1504.

Expected behavior

The re-homing search should consider all cores eligible under the evicted task's mask.

Additional context

Filed for tracking; low priority. Root-cause analysis and a reproduction harness are available on request.

主要语言
C
星标
4.6k
派生
1.6k
平均合并
2 天 22 小时
30 天内合并 PR
4

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

FreeRTOS/FreeRTOS-Kernel 的其他 Issue

查看 FreeRTOS/FreeRTOS-Kernel 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。