mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
sched: Identify the stack need to free by TCB_FLAG_FREE_STACK
instead calling kmm_heapmember or umm_heapmember because: 1.The stack supplied by caller may allocate from heap too 2.It's hard to implement these two function in ASan case Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I196377822b7c4643ab4f29b7c1dc41dcd7c4dab1
This commit is contained in:
committed by
David Sidrane
parent
af5e0c620f
commit
ab974edc84
@@ -107,7 +107,8 @@
|
||||
#define TCB_FLAG_SIGNAL_ACTION (1 << 9) /* Bit 8: In a signal handler */
|
||||
#define TCB_FLAG_SYSCALL (1 << 10) /* Bit 9: In a system call */
|
||||
#define TCB_FLAG_EXIT_PROCESSING (1 << 11) /* Bit 10: Exitting */
|
||||
/* Bits 11-15: Available */
|
||||
#define TCB_FLAG_FREE_STACK (1 << 12) /* Bit 12: Free stack after exit */
|
||||
/* Bits 13-15: Available */
|
||||
|
||||
/* Values for struct task_group tg_flags */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user