jerpelea opened a new pull request, #15172:
URL: https://github.com/apache/nuttx/pull/15172

   ## Summary
   POSIX requires that the shm objects are zero-initialized. This has been 
broken in some earlier commits (starting from 
https://github.com/apache/nuttx/commit/9af5fc5d09724a5d300bc07ce85b9ba5c01ffadd)
   
   Also fix the flat build memory allocation to allocate both object data and 
payload in the same chunk (as the comment also suggests). This saves 
allocations and memory in a system with lots of shm objects.
   
   This PR fixes errors in applications, which run in "CONFIG_BUILD_FLAT", and 
assume that newly allocated shared memory is zero-initialized.
   
   This also reduces memory consumption in smaller devices, when each shared 
memory object is allocated in a single chunk as originally.
   
   The errors were introduced earlier when the SHM allocations were cache-line 
aligned.
   
   NOTE
   included
   https://github.com/apache/nuttx/pull/15167
   
   ## Impact
   
   RELEASE
   
   ## Testing
   
   CI


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

Reply via email to