pkarashchenko commented on pull request #5539:
URL: https://github.com/apache/incubator-nuttx/pull/5539#issuecomment-1046609895


   I already pointed out the code that is affected by removal of 
`_SEM_TRYWAIT(&heap->mm_semaphore) >= 0;` from a `else if (sched_idletask())`. 
The case now will be always hit. I'm not sure is this will bring any issues and 
just want to be sure that we find and review impact in all possible places.
   ```
     if (mm_takesemaphore(heap) == false)
       {
         kasan_unpoison(mem, mm_malloc_size(mem));
   
         /* We are in IDLE task & can't get sem, or meet -ESRCH return,
          * which means we are in situations during context switching(See
          * mm_takesemaphore() & getpid()). Then add to the delay list.
          */
   
         mm_add_delaylist(heap, mem);
         return;
       }
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to