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/07/08 17:46:30 UTC

[GitHub] [incubator-nuttx] gustavonihei commented on a change in pull request #4096: mm: Simplify the semaphore handling

gustavonihei commented on a change in pull request #4096:
URL: https://github.com/apache/incubator-nuttx/pull/4096#discussion_r666400336



##########
File path: mm/mm_heap/mm_extend.c
##########
@@ -77,7 +77,7 @@ void mm_extend(FAR struct mm_heap_s *heap, FAR void *mem, size_t size,
 
   /* Take the memory manager semaphore */
 
-  mm_takesemaphore(heap);
+  DEBUGVERIFY(mm_takesemaphore(heap));

Review comment:
       The statement should not be wrapped in the DEBUGVERIFY macro, otherwise it will be discarded when `CONFIG_DEBUG_ASSERTIONS` is disabled.




-- 
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