RT-Thread / RT-Thread/rt-thread
[Feature] 使用std::thread栈过小/不会自动扩容栈
Open
Nobody has claimed this yet.
- 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
std::thread似乎没有api去调stack,然后既然写c++了,默认的2048有点过小了。。。感觉要么最好支持自动扩容栈要么可以用kconfig去调pthread的栈大小。
[67895] W/kernel.sched: warning: pth00 stack is close to end of stack address.
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 std::thread and the pthread stack-size configuration path, then reproduce the pth00 stack-near-end warning. Clarify whether the intended result is automatic stack expansion or a Kconfig-controlled size, and define validation for the selected behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- embedded-iot, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100