/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_unit_tests.cpp | 161 uint8_t* pointer = reinterpret_cast<uint8_t*>(debug_malloc(alloc_size)); in VerifyAllocCalls() local 162 ASSERT_TRUE(pointer != nullptr); in VerifyAllocCalls() 163 for (size_t i = 0; i < debug_malloc_usable_size(pointer); i++) { in VerifyAllocCalls() 164 ASSERT_EQ(0xeb, pointer[i]); in VerifyAllocCalls() 166 debug_free(pointer); in VerifyAllocCalls() 169 pointer = reinterpret_cast<uint8_t*>(debug_calloc(1, alloc_size)); in VerifyAllocCalls() 170 ASSERT_TRUE(pointer != nullptr); in VerifyAllocCalls() 171 for (size_t i = 0; i < debug_malloc_usable_size(pointer); i++) { in VerifyAllocCalls() 172 ASSERT_EQ(0, pointer[i]) << "Failed at byte " << i; in VerifyAllocCalls() 174 debug_free(pointer); in VerifyAllocCalls() [all …]
|
/bionic/libc/malloc_debug/ |
D | malloc_debug.cpp | 81 ssize_t debug_malloc_backtrace(void* pointer, uintptr_t* frames, size_t frame_count); 83 size_t debug_malloc_usable_size(void* pointer); 85 void debug_free(void* pointer); 88 void* debug_realloc(void* pointer, size_t bytes); 175 static void LogError(const void* pointer, const char* error_str) { in LogError() argument 177 error_log("+++ ALLOCATION %p %s", pointer, error_str); in LogError() 182 PointerData::LogFreeBacktrace(pointer); in LogError() 193 static bool VerifyPointer(const void* pointer, const char* function_name) { in VerifyPointer() argument 195 Header* header = g_debug->GetHeader(pointer); in VerifyPointer() 204 LogError(pointer, error_str.c_str()); in VerifyPointer() [all …]
|
D | DebugData.cpp | 62 pointer.reset(new PointerData(this)); in Initialize() 63 if (!pointer->Initialize(config_)) { in Initialize() 82 if (pointer != nullptr) { in PrepareFork() 83 pointer->PrepareFork(); in PrepareFork() 88 if (pointer != nullptr) { in PostForkParent() 89 pointer->PostForkParent(); in PostForkParent() 94 if (pointer != nullptr) { in PostForkChild() 95 pointer->PostForkChild(); in PostForkChild()
|
D | RecordData.cpp | 55 AllocEntry::AllocEntry(void* pointer) : pointer_(pointer) {} in AllocEntry() argument 57 MallocEntry::MallocEntry(void* pointer, size_t size) : AllocEntry(pointer), size_(size) {} in MallocEntry() argument 63 FreeEntry::FreeEntry(void* pointer) : AllocEntry(pointer) {} in FreeEntry() argument 69 CallocEntry::CallocEntry(void* pointer, size_t nmemb, size_t size) in CallocEntry() argument 70 : MallocEntry(pointer, size), nmemb_(nmemb) {} in CallocEntry() 76 ReallocEntry::ReallocEntry(void* pointer, size_t size, void* old_pointer) in ReallocEntry() argument 77 : MallocEntry(pointer, size), old_pointer_(old_pointer) {} in ReallocEntry() 84 MemalignEntry::MemalignEntry(void* pointer, size_t size, size_t alignment) in MemalignEntry() argument 85 : MallocEntry(pointer, size), alignment_(alignment) {} in MemalignEntry()
|
D | RecordData.h | 68 explicit AllocEntry(void* pointer); 80 MallocEntry(void* pointer, size_t size); 94 explicit FreeEntry(void* pointer); 105 CallocEntry(void* pointer, size_t size, size_t nmemb); 119 ReallocEntry(void* pointer, size_t size, void* old_pointer); 134 MemalignEntry(void* pointer, size_t size, size_t alignment);
|
D | PointerData.cpp | 81 g_debug->pointer->ToggleBacktraceEnabled(); in ToggleBacktraceEnable() 85 g_debug->pointer->EnableDumping(); in EnableDump() 196 uintptr_t pointer = reinterpret_cast<uintptr_t>(ptr); in Add() local 203 pointers_[pointer] = PointerInfoType{PointerInfoType::GetEncodedSize(pointer_size), hash_index}; in Add() 207 uintptr_t pointer = reinterpret_cast<uintptr_t>(ptr); in Remove() local 211 auto entry = pointers_.find(pointer); in Remove() 214 error_log("No tracked pointer found for 0x%" PRIxPTR, pointer); in Remove() 218 pointers_.erase(pointer); in Remove() 225 uintptr_t pointer = reinterpret_cast<uintptr_t>(ptr); in GetFrames() local 229 auto entry = pointers_.find(pointer); in GetFrames() [all …]
|
D | PointerData.h | 102 uintptr_t pointer; 107 uintptr_t pointer; 140 static void Add(const void* pointer, size_t size); 141 static void Remove(const void* pointer); 147 static void* AddFreed(const void* pointer); 160 static size_t GetFrames(const void* pointer, uintptr_t* frames, size_t max_frames); 162 static bool Exists(const void* pointer);
|
D | DebugData.h | 58 Header* GetHeader(const void* pointer) { in GetHeader() argument 59 uintptr_t value = reinterpret_cast<uintptr_t>(pointer); in GetHeader() 86 std::unique_ptr<PointerData> pointer; variable
|
D | GuardData.cpp | 49 void GuardData::LogFailure(const Header* header, const void* pointer, const void* data) { in LogFailure() argument 51 error_log("+++ ALLOCATION %p SIZE %zu HAS A CORRUPTED %s GUARD", pointer, header->size, in LogFailure() 56 int pointer_idx = reinterpret_cast<uintptr_t>(data) - reinterpret_cast<uintptr_t>(pointer); in LogFailure()
|
D | GuardData.h | 52 void LogFailure(const Header* header, const void* pointer, const void* data);
|
D | README.md | 35 call changes the backtrace for the pointer no matter whether the pointer 195 When a pointer is freed, do not free the memory right away, but add it to 304 pointer = malloc(size) 306 **THREAD\_ID**: malloc pointer size 312 free(pointer) 314 **THREAD\_ID**: free pointer 320 pointer = calloc(nmemb, size) 322 **THREAD\_ID**: calloc pointer nmemb size 336 pointer = memalign(alignment, size) 338 **THREAD\_ID**: memalign pointer alignment size [all …]
|
D | README_marshmallow_and_earlier.md | 87 When a pointer is freed, do not free the memory right away, but add it to
|
/bionic/libc/malloc_debug/tools/ |
D | gen_malloc.pl | 183 my ($opts, $cur_thread, $pointer, $name, $size, $arg2) = @_; 187 $opts->{pointers}->{$pointer} = $slot; 190 $opts->{pointers}->{$pointer} = -1; 211 my $pointer = $1; 213 PrintAlloc($opts, $cur_thread, $pointer, "MALLOC", $size, 0); 215 my $pointer = $1; 218 PrintAlloc($opts, $cur_thread, $pointer, "CALLOC", $size, $nmemb); 220 my $pointer = $1; 223 PrintAlloc($opts, $cur_thread, $pointer, "MEMALIGN", $size, $align); 225 my $pointer = $1; [all …]
|
/bionic/libc/malloc_hooks/ |
D | malloc_hooks.cpp | 57 ssize_t hooks_malloc_backtrace(void* pointer, uintptr_t* frames, size_t frame_count); 59 size_t hooks_malloc_usable_size(void* pointer); 62 void hooks_free(void* pointer); 65 void* hooks_realloc(void* pointer, size_t bytes); 85 static void* default_realloc_hook(void* pointer, size_t bytes, const void*) { in default_realloc_hook() argument 86 return g_dispatch->realloc(pointer, bytes); in default_realloc_hook() 89 static void default_free_hook(void* pointer, const void*) { in default_free_hook() argument 90 g_dispatch->free(pointer); in default_free_hook() 124 size_t hooks_malloc_usable_size(void* pointer) { in hooks_malloc_usable_size() argument 125 return g_dispatch->malloc_usable_size(pointer); in hooks_malloc_usable_size() [all …]
|
/bionic/libc/kernel/uapi/linux/ |
D | vbox_vmmdev_types.h | 127 } pointer; member 145 } __packed pointer; member
|
D | wireless.h | 266 void __user * pointer; member
|
/bionic/tools/versioner/src/ |
D | Android.bp | 30 "-fno-omit-frame-pointer",
|
/bionic/linker/ |
D | linker_block_allocator_test.cpp | 42 void* pointer; member
|
/bionic/tests/ |
D | malloc_test.cpp | 454 void* pointer = malloc(size); in TEST() local 455 ASSERT_TRUE(pointer != nullptr); in TEST() 456 memset(pointer, 0xeb, malloc_usable_size(pointer)); in TEST() 457 free(pointer); in TEST() 462 ASSERT_TRUE(pointer != nullptr); in TEST()
|
D | thread_local_test.cpp | 167 typedef unsigned int gcc_pointer __attribute__((mode(pointer)));
|
/bionic/docs/ |
D | elf-tls.md | 24 architecture-specific thread pointer (TP) and can be accessed very efficiently -- typically just a 31 architecture-specific thread-pointer ([`__get_tls()`] in Bionic): 44 Each thread has a "Dynamic Thread Vector" (DTV) with a pointer to each module's TLS block (or NULL 47 expected to point immediately at the DTV pointer, whereas in variant 2, the DTV pointer's offset 176 // TPOFF is directly relative to the thread pointer. 379 thread pointer (e.g. `ps_get_thread_area`). 391 pointer was removed in [D10661] ([this function][r240543]). (arm32 was apparently never supported.) 416 `_thread_db_pthread_dtvp` | Offset from TP to DTV pointer (0 for variant 1, implementation-… 418 `_thread_db_dtv_t_pointer_val` | Offset within a DTV slot to the pointer to the allocated TLS bl… 427 * Read the target thread pointer. [all …]
|
D | status.md | 55 corresponding pointer argument, leading to obscure errors. The scanf family 308 calling a `<dirent.h>` function on a null pointer, using `%n` with the
|
/bionic/libc/bionic/ |
D | malloc_common_dynamic.cpp | 455 extern "C" ssize_t malloc_backtrace(void* pointer, uintptr_t* frames, size_t frame_count) { in malloc_backtrace() argument 460 return reinterpret_cast<malloc_backtrace_func_t>(func)(pointer, frames, frame_count); in malloc_backtrace()
|
/bionic/libc/ |
D | Android.bp | 47 "-Werror=pointer-to-int-cast", 48 "-Werror=int-to-pointer-cast",
|