Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
0839e20f28
  1. 7
      crypto777/iguana_OS.c

7
crypto777/iguana_OS.c

@ -434,7 +434,12 @@ void *iguana_memalloc(struct OS_memspace *mem,long size,int32_t clearflag)
}
#endif
//printf(">>>>>>>>> USED.%s alloc %ld used %ld alloc.%ld -> %s %p\n",mem->name,size,(long)mem->used,(long)mem->totalsize,mem->name,ptr);
} else printf("error memalloc mem.%p (%s) alloc %ld used %ld totalsize.%ld -> %s %p\n",mem,mem->name,size,(long)mem->used,(long)mem->totalsize,mem->name,ptr), getchar();//exit(-1);
}
else
{
printf("error memalloc mem.%p (%s) alloc %ld used %ld totalsize.%ld -> %s %p\n",mem,mem->name,size,(long)mem->used,(long)mem->totalsize,mem->name,ptr);
ptr = calloc(1,size);
}
//if ( mem->threadsafe != 0 )
// portable_mutex_unlock(&mem->mutex);
return(ptr);

Loading…
Cancel
Save