Searched refs:backtrace (Results 1 – 2 of 2) sorted by relevance
/bionic/libc/bionic/ |
D | malloc_debug_leak.cpp | 90 static uint32_t get_hash(uintptr_t* backtrace, size_t numEntries) { in get_hash() argument 91 if (backtrace == NULL) return 0; in get_hash() 96 hash = (hash * 33) + (backtrace[i] >> 2); in get_hash() 103 uintptr_t* backtrace, size_t numEntries, size_t size) { in find_entry() argument 113 !memcmp(backtrace, entry->backtrace, numEntries * sizeof(uintptr_t))) { in find_entry() 123 static HashEntry* record_backtrace(uintptr_t* backtrace, size_t numEntries, size_t size) { in record_backtrace() argument 124 size_t hash = get_hash(backtrace, numEntries); in record_backtrace() 138 HashEntry* entry = find_entry(g_hash_table, slot, backtrace, numEntries, size); in record_backtrace() 154 memcpy(entry->backtrace, backtrace, numEntries * sizeof(uintptr_t)); in record_backtrace() 306 uintptr_t backtrace[BACKTRACE_SIZE]; in leak_malloc() local [all …]
|
D | malloc_debug_common.h | 66 uintptr_t backtrace[0]; member
|