RT-Thread / RT-Thread/rt-thread

[Feature] 使用std::thread栈过小/不会自动扩容栈

Open
#11,207 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.