[rk_malloc]: add mem_list feature to rk_malloc module

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@41 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2015-08-06 02:56:20 +00:00
parent 2f28e8f262
commit 68c6012d09
2 changed files with 41 additions and 2 deletions

View File

@@ -16,10 +16,12 @@
#define MODULE_TAG "rk_malloc_test"
#include "rk_log.h"
#include "rk_env.h"
#include "rk_malloc.h"
int main()
{
rk_set_env_u32("osal_mem_list", 1);
void *tmp = rk_malloc(int, 100);
if (tmp) {
rk_log("malloc success\n");