Home
last modified time | relevance | path

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

/llvm-project-15.0.7/compiler-rt/lib/gwp_asan/tests/
H A 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()
/llvm-project-15.0.7/compiler-rt/lib/gwp_asan/
H A Dcommon.h100 bool IsDeallocated = false; member
163 static_assert(offsetof(AllocationMetadata, IsDeallocated) == 560, "");
168 static_assert(offsetof(AllocationMetadata, IsDeallocated) == 560, "");
173 static_assert(offsetof(AllocationMetadata, IsDeallocated) == 544, "");
178 static_assert(offsetof(AllocationMetadata, IsDeallocated) == 552, "");
H A Dcommon.cpp44 IsDeallocated = false; in RecordAllocation()
52 IsDeallocated = true; in RecordDeallocation()
H A Dcrash_handler.cpp73 if (SlotMeta->IsDeallocated) { in __gwp_asan_diagnose_error()
130 return AllocationMeta->IsDeallocated; in __gwp_asan_is_deallocated()
H A Dguarded_pool_allocator.cpp128 if (Meta.Addr && !Meta.IsDeallocated && Meta.Addr >= Start && in iterate()
295 if (Meta->IsDeallocated) { in deallocate()