Ouss4 commented on a change in pull request #4759: URL: https://github.com/apache/incubator-nuttx/pull/4759#discussion_r743124566
########## File path: sched/irq/irq_dispatch.c ########## @@ -184,6 +185,14 @@ void irq_dispatch(int irq, FAR void *context) sched_note_irqhandler(irq, vector, false); #endif +#ifdef CONFIG_DEBUG_MM + if ((g_running_tasks[this_cpu()]->flags & TCB_FLAG_MEM_CHECK) || \ + (this_task()->flags & TCB_FLAG_MEM_CHECK)) + { + kmm_checkcorruption(); Review comment: We also do the same check in the idle thread, is this to catch an issue as early as possible? ########## File path: sched/irq/irq_dispatch.c ########## @@ -184,6 +185,14 @@ void irq_dispatch(int irq, FAR void *context) sched_note_irqhandler(irq, vector, false); #endif +#ifdef CONFIG_DEBUG_MM + if ((g_running_tasks[this_cpu()]->flags & TCB_FLAG_MEM_CHECK) || \ + (this_task()->flags & TCB_FLAG_MEM_CHECK)) + { + kmm_checkcorruption(); Review comment: We also do the same check in the idle thread, is this to catch an issue as early as possible? -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org