System/Setup/Environment+FFI/LibC: Increase calloc/malloc mem_tasks
Give LibC malloc() and calloc() an array of 16 mem_tasks each, for now. We will probably be removing this, in favor of giving each non-HolyC library its own static memory pool, as we will do with stb_truetype.h in a forthcoming commit.
This commit is contained in:
parent
b7cab3b419
commit
b40820272f
2 changed files with 20 additions and 4 deletions
|
@ -12,8 +12,8 @@ U0 bcmp()
|
|||
|
||||
U64 @calloc(I64 size)
|
||||
{
|
||||
U64 res = CAlloc(size, malloc_mem_task[malloc_current_mem_task % MALLOC_MEM_TASK_COUNT]->code_heap);
|
||||
malloc_current_mem_task++;
|
||||
U64 res = CAlloc(size, calloc_mem_task[calloc_current_mem_task % CALLOC_MEM_TASK_COUNT]->code_heap);
|
||||
calloc_current_mem_task++;
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue