xiaoxiang781216 commented on code in PR #21804:
URL: https://github.com/apache/nuttx/pull/21804#discussion_r4676201701


##########
arch/arm/src/common/arm_createstack.c:
##########
@@ -193,7 +193,7 @@ int up_create_stack(struct tcb_s *tcb, size_t stack_size, 
uint8_t ttype)
 
       arm_stack_color(tcb->stack_base_ptr, tcb->adj_stack_size);
 #endif /* CONFIG_STACK_COLORATION */
-      tcb->flags |= TCB_FLAG_FREE_STACK;
+      atomic_or(&tcb->flags, TCB_FLAG_FREE_STACK);

Review Comment:
   is it really need to reset? the thread will exit anyway.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to