Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] thread stack 相关提案 #9351

Open
2 tasks
polarvid opened this issue Aug 26, 2024 · 2 comments
Open
2 tasks

[Feature] thread stack 相关提案 #9351

polarvid opened this issue Aug 26, 2024 · 2 comments
Labels
good first issue Good for newcomers 新手任务 RT-Smart RT-Thread Smart related PR or issues

Comments

@polarvid
Copy link
Contributor

polarvid commented Aug 26, 2024

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

@polarvid polarvid added good first issue Good for newcomers 新手任务 RT-Smart RT-Thread Smart related PR or issues labels Aug 26, 2024
@GuEe-GUI
Copy link
Contributor

支持,测试用例都是什么鬼东西,栈大小全是写死的

@zhangjing0303
Copy link
Contributor

是否考虑设置专门的中断栈,在异常/中断的时候上下文保存在当前被中断的任务栈上,保存上下文后切换到中断栈执行后续的中断处理,这样在有中断嵌套或者isr占用栈空间过大时不会导致thread的栈溢出。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers 新手任务 RT-Smart RT-Thread Smart related PR or issues
Projects
None yet
Development

No branches or pull requests

3 participants