Home
last modified time | relevance | path

Searched refs:key_pointer (Results 1 – 2 of 2) sorted by relevance

/system/extras/memory_replay/
DPointers.cpp52 void Pointers::Add(uintptr_t key_pointer, void* pointer) { in Add() argument
53 pointer_data* data = FindEmpty(key_pointer); in Add()
55 err(1, "No empty entry found for 0x%" PRIxPTR "\n", key_pointer); in Add()
57 atomic_store(&data->key_pointer, key_pointer); in Add()
61 void* Pointers::Remove(uintptr_t key_pointer) { in Remove() argument
62 if (key_pointer == 0) { in Remove()
66 pointer_data* data = Find(key_pointer); in Remove()
68 err(1, "No pointer value found for 0x%" PRIxPTR "\n", key_pointer); in Remove()
72 atomic_store(&data->key_pointer, uintptr_t(0)); in Remove()
77 Pointers::pointer_data* Pointers::Find(uintptr_t key_pointer) { in Find() argument
[all …]
DPointers.h25 std::atomic_uintptr_t key_pointer; member
32 void Add(uintptr_t key_pointer, void* pointer);
34 void* Remove(uintptr_t key_pointer);
41 pointer_data* FindEmpty(uintptr_t key_pointer);
42 pointer_data* Find(uintptr_t key_pointer);
43 size_t GetHash(uintptr_t key_pointer);