This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Bug of Utils_memAlloc() in linux build



Hello,

In Utils_memAlloc() 

#if defined (A15_TARGET_OS_LINUX)
    UInt32 alignsize;
    alignsize = (size % SYSTEM_BUFFER_ALIGNMENT);
    size = ( size + alignsize);
#endif

And SYSTEM_BUFFER_ALIGNMENT is defined as 

#if defined (A15_TARGET_OS_LINUX)
#define SYSTEM_BUFFER_ALIGNMENT         (4096U)
#else
#define SYSTEM_BUFFER_ALIGNMENT         (16U)
#endif

When allocating UTILS_HEAPID_L2_LOCAL, actual allocation size became too big due to above code. This code should be passed when allocation is not shared region.

Best regards,

Wilson.