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.

OSAL Memory allocation in Z stack 2.5.0



I Noticed the new Z stack 2.5.0 has a different memory allocation scheme compared with 1.4.3, in 1.4.3, the ff1 and ff2 are used for long lived memory and general memory(and memory will be kicked after task init, so only task array is long lived memory). Two questions about this one.

1. In Z stack 2.5.0, there is a OSALMEM_LL_BLKSZ, which should live at the bottom of the small-block bucket so that they are never iterated however, I can not find any code to put this into bottom of small block or avoid the access of this memory for general memory allocation.Meanwhile, why don't put them in the beginning of small block?

2. Another issue is the profile tuning of OSALMEM_PROFILER_LL, If we have some frequently used memory with same size(could be freed reallocated). how do we put them into long lived memory. (similar as slab in Linux)

Thanks

Rui