-
Notifications
You must be signed in to change notification settings - Fork 2k
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
measure_stack_free_internal(): don't try to align end of stack #20723
Merged
maribu
merged 2 commits into
RIOT-OS:master
from
benpicco:tests/thread_stack_alignment-usage
Jun 4, 2024
Merged
measure_stack_free_internal(): don't try to align end of stack #20723
maribu
merged 2 commits into
RIOT-OS:master
from
benpicco:tests/thread_stack_alignment-usage
Jun 4, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
benpicco
requested review from
leandrolanzieri,
aabadie and
MichelRottleuthner
as code owners
June 4, 2024 14:47
benpicco
added
the
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
label
Jun 4, 2024
github-actions
bot
added
the
Area: core
Area: RIOT kernel. Handle PRs marked with this with care!
label
Jun 4, 2024
benpicco
changed the title
tests/core/thread_stack_alignment: also test for stack usage
measure_stack_free_internal(): don't try to align end of stack
Jun 4, 2024
benpicco
force-pushed
the
tests/thread_stack_alignment-usage
branch
from
June 4, 2024 14:57
58e62c9
to
5b73294
Compare
benpicco
added
the
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
label
Jun 4, 2024
benpicco
changed the title
measure_stack_free_internal(): don't try to align end of stack
tests/core/thread_stack_alignment: also test for stack usage
Jun 4, 2024
superseded by #20724 |
Let's go with this. The stack size is sanitized before any arch code is called, I don't think there is value in keeping the extra alignment code: Lines 220 to 221 in 2576649
|
benpicco
changed the title
tests/core/thread_stack_alignment: also test for stack usage
measure_stack_free_internal(): don't try to align end of stack
Jun 4, 2024
maribu
approved these changes
Jun 4, 2024
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area: core
Area: RIOT kernel. Handle PRs marked with this with care!
Area: tests
Area: tests and testing framework
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Contribution description
The end-of stack alignment causes the function to fail measuring the stack size.
Testing procedure
A new test was added to verify the stack measurement.
ps
also shows the stack usage againIssues/PRs references
fixes the issue from #18942 (comment)