sebastianene07 commented on a change in pull request #1703:
URL: https://github.com/apache/incubator-nuttx/pull/1703#discussion_r483914974
##########
File path: arch/sim/src/sim/up_exit.c
##########
@@ -94,7 +97,14 @@ void up_exit(int status)
/* Then switch contexts */
+#ifdef CONFIG_SIM_UCONTEXT_PREEMPTION
+ up_destroy_context(prev_tcb->xcp.ucontext_buffer,
Review comment:
I was doing this because I had to free the stack memory used by ucontext
API. The stack memory is allocated from the host heap currently.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]