Perform proper memory commit. Many bug fizes
This commit is contained in:
+5
-3
@@ -2,9 +2,11 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
void *platform_malloc(size_t size);
|
||||
void platform_free(void *mem);
|
||||
U32 platform_page_size(void);
|
||||
|
||||
void *memory_allocate(size_t size);
|
||||
void *memory_free(void *mem, size_t size);
|
||||
void *memory_allocate_and_commit(size_t size);
|
||||
void *memory_reserve(size_t size);
|
||||
void memory_commit(void *mem, size_t size);
|
||||
void memory_decommit(void *mem, size_t size);
|
||||
|
||||
void memory_free(void *mem, size_t size);
|
||||
|
||||
Reference in New Issue
Block a user