Searched refs:usable_size (Results 1 - 5 of 5) sorted by relevance

/bionic/libc/malloc_debug/
H A Dmalloc_debug.h55 size_t usable_size; member in struct:Header
H A Dmalloc_debug.cpp143 header->usable_size = g_dispatch->malloc_usable_size(orig_pointer);
144 if (header->usable_size == 0) {
148 header->usable_size -= g_debug->pointer_offset() +
161 header->usable_size = header->real_size();
278 return header->usable_size;
360 bytes = header->usable_size;
493 if (real_size < header->usable_size) {
500 // change the header usable_size and reset the rear guard.
501 header->usable_size = header->real_size();
515 prev_size = header->usable_size;
[all...]
H A DFreeTrackData.cpp52 for (size_t i = 0; i < header->usable_size; i++) {
76 size_t bytes = header->usable_size;
/bionic/libc/malloc_debug/tests/
H A Dmalloc_debug_unit_tests.cpp216 size_t usable_size = debug_malloc_usable_size(pointer); local
217 memset(pointer, 0, usable_size);
220 for (size_t i = 0; i < usable_size; i++) {
233 size_t usable_size = debug_malloc_usable_size(pointer); local
234 memset(pointer, 0, usable_size);
240 for (size_t i = 30; i < usable_size; i++) {
253 size_t usable_size = debug_malloc_usable_size(pointer); local
254 memset(pointer, 0, usable_size);
260 for (size_t i = 30; i < usable_size; i++) {
1225 size_t usable_size local
[all...]
/bionic/tests/
H A Dmalloc_test.cpp387 size_t usable_size = malloc_usable_size(zero_mem); local
388 for (size_t i = 0; i < usable_size; i++) {

Completed in 384 milliseconds