You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/11/09 14:58:50 UTC

[GitHub] [incubator-nuttx] GUIDINGLI commented on a change in pull request #4782: sem: remove limitation of irq context when do sem_trywait

GUIDINGLI commented on a change in pull request #4782:
URL: https://github.com/apache/incubator-nuttx/pull/4782#discussion_r745699316



##########
File path: mm/mm_heap/mm_free.c
##########
@@ -86,6 +86,10 @@ void mm_free(FAR struct mm_heap_s *heap, FAR void *mem)
 
   kasan_poison(mem, mm_malloc_size(mem));
 
+  /* Must not in IRQ */
+
+  DEBUGASSERT(!up_interrupt_context());

Review comment:
       So you mean remove this check in mm_free() ?
   But in order to align the code with mm_malloc(), then suggest add this check




-- 
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-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org