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.

[参考译文] Linux 编译中 Utils_memAlloc()的错误

Guru**** 2577385 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/628314/bug-of-utils_memalloc-in-linux-build

您好!

在 Utils_memAlloc()中  

#if 已定义(A15_TARGET_OS_Linux)
uint32 alignsize;
alignsize =(size % system_buffer_alignment);
size =(size + alignsize);
#endif 

 system_buffer_alignment 定义为  

#if defined (A15_target_OS_Linux)
#define system_buffer_alignment (4096U)
#else
#define system_buffer_alignment (16U)
#endif 

分配 utils_HEAPID_L2_local 时、由于上述代码、实际分配大小变得过大。 当分配不是共享区域时、应传递此代码。

此致、

Wilson。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Wilson、

    我已将您的问题转交给 SW 专家进行评论。

    此致、
    Yordan
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    Wilson
    是的、这是一个错误、现在已经修复了。
    此修复程序将包含在下一个 VSDK 版本3.1中(~十月中旬)

    此致、Shiju