You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reorganize internal data structures to honor alignment.
Rationale
The data structures tracking memory buffers in Svc::BufferManager look like this:
structAllocatedBuffer
{
Fw::Buffer buff; //!< Buffer class to give to user
U8 *memory; //!< pointer to memory buffer
U32 size; //!< size of the bufferbool allocated; //!< this buffer has been allocated
};
The issue is that if a user wants to get aligned buffers, the memory member is not aligned.
The proposal would be to reorganize the data structures so that the memory pointers retain the alignment. This could be done by placing the AllocatedBuffer structs at the end of the overall allocated buffer.
The text was updated successfully, but these errors were encountered:
Feature Description
Reorganize internal data structures to honor alignment.
Rationale
The data structures tracking memory buffers in
Svc::BufferManager
look like this:The issue is that if a user wants to get aligned buffers, the
memory
member is not aligned.The proposal would be to reorganize the data structures so that the memory pointers retain the alignment. This could be done by placing the
AllocatedBuffer
structs at the end of the overall allocated buffer.The text was updated successfully, but these errors were encountered: