-
Notifications
You must be signed in to change notification settings - Fork 0
Add back pthread_attr_setstacksize update #1
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
Add back pthread_attr_setstacksize update #1
Conversation
Oh I did miss a couple of formatting things. You'll fixup the original commits with a git rebase? Did you want me to look at doing that? I think the only objection I'd have is putting back pthread_attr_setstacksize(). It will result in valgrind false positives for reused stacks (such as a second start of a thread on the same stack memory) as valgrind is tracking the stack pointer as it moves. There are ways to let valgrind know about this but it seems complex and would mean the port would have to link against and call some advanced valgrind functions, https://valgrind.org/docs/manual/manual-core-adv.html |
Let me update the PR again to revert pthread_attr_setstacksize. |
d9fb099
to
2290f28
Compare
@chinglee-iot alright, so I removed the stack size commit from cmm_posix during the rebase (I think by accident but unless you see it there I don't see it here). So it probably makes sense for you to confirm you need your commit to revert it and I can open up a separate PR to address the stack size changes once this is merged, if that works. |
@chinglee-iot ok if I rebase your branch into mine to clean up the history? if so I can do that now |
and by that last comment, these changes look good, I can merge/rebase your changes into the cmm_posix changes to update those two commits and keep the history cleaner on the merge side of the main repo |
Usually we will do squash and merge. It is not necessary to rebase. |
@chinglee-iot k, let me do a final review, add that commit in and merge this back in. Thank you for keeping at this one, its probably only important to those of us using the posix port so I appreciate it. |
Add back pthread_attr_setstacksize update
Description
In this PR
pthread_attr_setstacksize
changevPortEndScheduler
Test Steps
Checklist:
Related Issue
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.