RT-Thread / RT-Thread/rt-thread
[Feature] thread stack 相关提案
Open
Nobody has claimed this yet.
good first issue
RT-Smart
- Dominant language
- C
- Stars
- 12.2k
- Forks
- 5.4k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 40
Description
Describe problem solved by the proposed feature
需求
- thread stack 支持架构定义阈值,避免中断上下文直接导致栈溢出.
- thread stack 动态分配方式支持配置。可以(在 smart 上)通过 page 管理器(或其他专用池?)分配。因为 memheap 使用一段时间后产生碎片化,可能分配不出 KB 级别数据.
Describe your preferred solution
No response
Describe possible alternatives
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the RT-Thread thread-stack allocation path and reviewing the memheap and page-manager approaches mentioned in the issue. Clarify the architecture-specific threshold and configurable allocation requirements before implementation. Done means preventing stack overflow from interrupt context and supporting the requested allocation strategies without relying solely on fragmented memheap space.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100