-
Notifications
You must be signed in to change notification settings - Fork 1.4k
sched/task: Relocate the group ahead of the tcb to ensure the group drop logic #17578
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
base: master
Are you sure you want to change the base?
Conversation
…ormance" This reverts commit 31e562b. Signed-off-by: chao an <anchao.archer@bytedance.com>
Simplify the code and remove different tcb Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Just remove cast Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Just remove cast Signed-off-by: anjiahao <anjiahao@xiaomi.com>
…rop logic Relocate the group ahead of the tcb to ensure that the relationship between the group and tcb remains bound throughout the task lifecycle. This eliminates the need to add excessive redundant checks to prevent erroneous release of the group. Signed-off-by: chao an <anchao.archer@bytedance.com>
|
@anchao nice work! What test did you added to validate it? Should be it included in the ostest to catch this kind of regression in the future? |
@acassis Thank you for your review. Seriously , the probability of reproducing this issue is extremely low, as it requires kernel hacking to meet the test conditions. You may refer to commit #17418 (comment) in comment master...wangzhi16:nuttx:master. I haven’t figured out a good test scheme yet. |
Hi @anchao fair enough! No problem. If you find some yet to test the issue, please include it in the ostest. |
|
Hi anchao, Let's wait this PR merged: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want revert back your less-malloc patch, should in a independ PR
I will rebase this change if #17545 merged |
Summary
Impact
N/A
Testing
test log: