You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit addedfa
Browse filesBrowse the repository at this point in the historyBrowse files
pow%fix: prevent debug frame expansion due to debug builds, add test to validate execution in 128KiB stack (#82)
* [391bb2d] pow%fix: bake the lookup tables into `static`s, reject `const` arrays (Kittywhiskers Van Gogh)
* [7b8609a] pow%fix: force inlining only in optimised builds, lint `inline(always)` (Kittywhiskers Van Gogh)
* [f872352] pow%test: add test to validate execution within a 128 KiB thread stack (Kittywhiskers Van Gogh)
Description:
`````
## Additional Information
Downstream consumers experienced crashes due to the stack frames expanding well beyond what is permitted for mobile platforms. It is a variant of the bug mentioned in [rust-lang/rust#99111](rust-lang/rust#99111) that is triggered in debug builds. Clippy [`large_stack_frames`](https://rust-lang.github.io/rust-clippy/main/index.html#large_stack_frames) can catch this but is still in [`nursery`](https://doc.rust-lang.org/clippy/).
This pull request tackles the issue by disabling compulsory inlining in debug builds and restricts non-`static` tables to few enumerated exceptions.
## Breaking Changes
None expected.
## How Has This Been Tested?
`just test lint` and verification with consumer tests.
## Checklist
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have added or updated relevant unit/integration/functional tests
- [ ] I have made corresponding changes to the documentation
- [x] I did not use agentic assistance (i.e. LLMs, AI) except as [disclosed](#agent-disclosure) and can answer questions, comments and concerns without said assistance. I assume authorship of the code submitted.
- [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_
### Agent disclosure
Code generated with Claude Code using Opus 5.5, medium effort. Reviewed with Claude Code using Opus 5.5, medium effort.
`````
0 commit comments