Searched refs:g_alloc_bytes (Results 1 – 1 of 1) sorted by relevance
26 static size_t g_alloc_bytes = 0; variable58 if (size <= g_max_alloc_bytes - g_alloc_bytes) in malloc_with_check()69 g_alloc_bytes += size; in malloc_with_check()91 assert(g_alloc_bytes >= size); in free_with_check()95 g_alloc_bytes -= size; in free_with_check()116 assert(g_alloc_bytes >= oldsize); in realloc_with_check()118 if (size <= g_max_alloc_bytes - (g_alloc_bytes - oldsize)) in realloc_with_check()142 g_alloc_bytes -= oldsize; in realloc_with_check()143 g_alloc_bytes += size; in realloc_with_check()177 return g_alloc_bytes; in get_alloc_bytes()