mirror of
https://github.com/bolucat/Archive.git
synced 2026-04-23 00:17:16 +08:00
Update On Tue Apr 29 20:34:58 CEST 2025
This commit is contained in:
@@ -638,7 +638,7 @@ void CheckDanglingRawPtrBufferEmpty() {
|
||||
g_stack_trace_buffer = DanglingRawPtrBuffer();
|
||||
#else
|
||||
bool errors = false;
|
||||
for (auto entry : g_stack_trace_buffer) {
|
||||
for (const auto& entry : g_stack_trace_buffer) {
|
||||
if (!entry) {
|
||||
continue;
|
||||
}
|
||||
@@ -1380,4 +1380,10 @@ std::string PartitionAllocSupport::ExtractDanglingPtrSignatureForTests(
|
||||
}
|
||||
#endif
|
||||
|
||||
void CheckHeapIntegrity(const void* ptr) {
|
||||
#if PA_BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC)
|
||||
partition_alloc::PartitionRoot::CheckMetadataIntegrity(ptr);
|
||||
#endif // PA_BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC)
|
||||
}
|
||||
|
||||
} // namespace base::allocator
|
||||
|
||||
Reference in New Issue
Block a user