Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 9 of 9) sorted by relevance

/bionic/libc/bionic/
Dmalloc_debug_leak.cpp85 static AllocationEntry* to_header(void* mem) { in to_header() argument
86 return reinterpret_cast<AllocationEntry*>(mem) - 1; in to_header()
225 extern "C" void fill_free(void* mem) { in fill_free() argument
226 size_t bytes = dlmalloc_usable_size(mem); in fill_free()
227 memset(mem, CHK_FILL_FREE, bytes); in fill_free()
228 dlfree(mem); in fill_free()
231 extern "C" void* fill_realloc(void* mem, size_t bytes) { in fill_realloc() argument
233 if (mem == NULL) { in fill_realloc()
237 size_t old_size = dlmalloc_usable_size(mem); in fill_realloc()
239 memcpy(buffer, mem, size); in fill_realloc()
[all …]
Dmalloc_debug_qemu.cpp578 void qemu_instrumented_free(void* mem);
580 void* qemu_instrumented_realloc(void* mem, size_t bytes);
711 void qemu_instrumented_free(void* mem) { in qemu_instrumented_free() argument
714 if (mem == NULL) { in qemu_instrumented_free()
716 dlfree(mem); in qemu_instrumented_free()
721 if (query_qemu_malloc_info(mem, &desc, 1)) { in qemu_instrumented_free()
723 malloc_pid, getpid(), mem); in qemu_instrumented_free()
734 if (mem != mallocdesc_user_ptr(&desc)) { in qemu_instrumented_free()
736 malloc_pid, getpid(), mem); in qemu_instrumented_free()
741 if (notify_qemu_free(mem)) { in qemu_instrumented_free()
[all …]
Dmalloc_debug_common.cpp193 extern "C" size_t malloc_usable_size(void* mem) { in malloc_usable_size() argument
194 return dlmalloc_usable_size(mem); in malloc_usable_size()
229 extern "C" void free(void* mem) { in free() argument
230 __libc_malloc_dispatch->free(mem); in free()
/bionic/libc/kernel/arch-mips/asm/
Dio.h76mem) { volatile type *__mem; type __val; __mem = (void *)__swizzle_addr_##bwlq((unsigned …
92mem, const void *addr, unsigned int count) { const volatile type *__addr = addr; while (c…
/bionic/libc/kernel/common/linux/
Dplist.h41 #define plist_for_each_entry(pos, head, mem) list_for_each_entry(pos, &(head)->node_list, mem.pli… argument
/bionic/libc/upstream-dlmalloc/
Dmalloc.c1334 DLMALLOC_EXPORT void mspace_free(mspace msp, void* mem);
1345 DLMALLOC_EXPORT void* mspace_realloc(mspace msp, void* mem, size_t newsize);
1397 DLMALLOC_EXPORT size_t mspace_usable_size(const void* mem);
2219 #define mem2chunk(mem) ((mchunkptr)((char*)(mem) - TWO_SIZE_T_SIZES)) argument
2813 static void do_check_malloced_chunk(mstate m, void* mem, size_t s);
3301 static void do_check_malloced_chunk(mstate m, void* mem, size_t s) { in do_check_malloced_chunk() argument
3302 if (mem != 0) { in do_check_malloced_chunk()
3303 mchunkptr p = mem2chunk(mem); in do_check_malloced_chunk()
3816 #define internal_free(m, mem) mspace_free(m,mem); argument
3821 #define internal_free(m, mem)\ argument
[all …]
Dmalloc.h594 void mspace_free(mspace msp, void* mem);
596 void* mspace_realloc(mspace msp, void* mem, size_t newsize);
597 void* mspace_realloc_in_place(mspace msp, void* mem, size_t newsize);
604 size_t mspace_usable_size(const void* mem);
/bionic/libc/kernel/arch-mips/asm/sn/
Dioc3.h429 #define IOC3_PENDING_INTRS(mem) (PCI_INW(&((mem)->sio_ir)) & PCI_INW(&((mem)->sio_ies_ro))) argument
/bionic/libc/kernel/arch-mips/asm/pci/
Dbridge.h664 struct resource mem; member