Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

[fiber] Add stack overflow check in every yield#1219

Merged
salkinium merged 7 commits intomodm-io:developfromsalkinium:feature/stkof
Nov 10, 2024

Conversation

salkinium
Copy link
Member

@salkiniumsalkinium commentedNov 3, 2024
edited
Loading

The weakness of fibers is their stack usage, and the main issue is stack overflows. With the current lack of stack overflow checking, it is extremely easy to write code that silently overflows the stack and causes all sorts of issues. Particularly when the overflow only happens in occasionally, this can lead to a horrible debug experience.
Sadly this will increase switching times a bit, but there's really no point to not checking stack overflows, it's the core problem with stackful scheduling.

After this feature, I would consider fibers to be ready for prime time, and I would deprecate protothreads/resumables not running in fiber mode (in a separate PR). Otherwise we'll never get past GCC12.

  • Add overflow detection inmodm_context_jump
    • AVR
    • ARMv6-M
    • ARMv7-M
    • ARMv8-M
    • ARM64
    • x86
  • Update documentation
  • Update examples
    • AVR
    • Cortex-M
  • Testing
    • AVR
    • ARM64
    • STM32G0 (ARMv6-M)
    • STM32L4 (ARMv7-M)
    • STM32U5 (ARMv8-M)

@salkiniumsalkiniumforce-pushed thefeature/stkof branch 7 times, most recently from57170b1 tod4908daCompareNovember 9, 2024 17:56
@salkiniumsalkinium added this to the2024q4 milestoneNov 9, 2024
@salkiniumsalkinium marked this pull request as ready for reviewNovember 9, 2024 19:24
@salkiniumsalkiniumforce-pushed thefeature/stkof branch 8 times, most recently from0a2cd26 tof2526cfCompareNovember 10, 2024 13:38
@salkiniumsalkinium merged commitf0d4534 intomodm-io:developNov 10, 2024
12 checks passed
@salkiniumsalkinium deleted the feature/stkof branchNovember 10, 2024 23:39
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Milestone
2024q4
Development

Successfully merging this pull request may close these issues.

1 participant
@salkinium

[8]ページ先頭

©2009-2025 Movatter.jp