Searched refs:old_usable_size (Results 1 – 1 of 1) sorted by relevance
196 size_t old_usable_size = LimitUsableSize(old_mem); in LimitRealloc() local199 if (bytes > old_usable_size && !CheckLimit(bytes - old_usable_size)) { in LimitRealloc()216 atomic_fetch_sub(&gAllocated, old_usable_size); in LimitRealloc()222 if (__predict_false(old_usable_size > new_usable_size)) { in LimitRealloc()223 atomic_fetch_sub(&gAllocated, old_usable_size - new_usable_size); in LimitRealloc()225 atomic_fetch_add(&gAllocated, new_usable_size - old_usable_size); in LimitRealloc()