Home
last modified time | relevance | path

Searched refs:IsDeallocated (Results 1 – 10 of 10) sorted by relevance

/external/llvm-project/compiler-rt/lib/gwp_asan/tests/
Dcrash_handler_api.cpp24 size_t metadata(uintptr_t Addr, uintptr_t Size, bool IsDeallocated) { in metadata() argument
33 Metadata[Slot].IsDeallocated = IsDeallocated; in metadata()
54 if (Meta->IsDeallocated) in setupBacktraces()
61 void checkBacktrace(const AllocationMetadata *Meta, bool IsDeallocated) { in checkBacktrace() argument
69 if (IsDeallocated) { in checkBacktrace()
87 bool IsDeallocated = __gwp_asan_is_deallocated(Meta); in checkMetadata() local
88 EXPECT_EQ(Metadata[Index].IsDeallocated, IsDeallocated); in checkMetadata()
89 checkBacktrace(Meta, IsDeallocated); in checkMetadata()
91 if (!IsDeallocated) in checkMetadata()
/external/gwp_asan/gwp_asan/tests/
Dcrash_handler_api.cpp24 size_t metadata(uintptr_t Addr, uintptr_t Size, bool IsDeallocated) { in metadata() argument
33 Metadata[Slot].IsDeallocated = IsDeallocated; in metadata()
54 if (Meta->IsDeallocated) in setupBacktraces()
61 void checkBacktrace(const AllocationMetadata *Meta, bool IsDeallocated) { in checkBacktrace() argument
69 if (IsDeallocated) { in checkBacktrace()
88 bool IsDeallocated = __gwp_asan_is_deallocated(Meta); in checkMetadata() local
89 EXPECT_EQ(Metadata[Index].IsDeallocated, IsDeallocated); in checkMetadata()
90 checkBacktrace(Meta, IsDeallocated); in checkMetadata()
92 if (!IsDeallocated) in checkMetadata()
/external/gwp_asan/gwp_asan/
Dcommon.cpp44 IsDeallocated = false; in RecordAllocation()
52 IsDeallocated = true; in RecordDeallocation()
Dcrash_handler.cpp73 if (SlotMeta->IsDeallocated) { in __gwp_asan_diagnose_error()
130 return AllocationMeta->IsDeallocated; in __gwp_asan_is_deallocated()
Dcommon.h79 bool IsDeallocated = false; member
Dguarded_pool_allocator.cpp121 if (Meta.Addr && !Meta.IsDeallocated && Meta.Addr >= Start && in iterate()
285 if (Meta->IsDeallocated) { in deallocate()
/external/llvm-project/compiler-rt/lib/gwp_asan/
Dcommon.cpp44 IsDeallocated = false; in RecordAllocation()
52 IsDeallocated = true; in RecordDeallocation()
Dcrash_handler.cpp72 if (SlotMeta->IsDeallocated) { in __gwp_asan_diagnose_error()
129 return AllocationMeta->IsDeallocated; in __gwp_asan_is_deallocated()
Dcommon.h79 bool IsDeallocated = false; member
Dguarded_pool_allocator.cpp127 if (Meta.Addr && !Meta.IsDeallocated && Meta.Addr >= Start && in iterate()
236 if (Meta->IsDeallocated) { in deallocate()