1 // Copyright 2023 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "partition_alloc/partition_freelist_entry.h" 6 7 #include "partition_alloc/partition_alloc_base/immediate_crash.h" 8 #include "partition_alloc/partition_alloc_check.h" 9 10 namespace partition_alloc::internal { 11 FreelistCorruptionDetected(size_t slot_size)12void FreelistCorruptionDetected(size_t slot_size) { 13 // Make it visible in minidumps. 14 PA_DEBUG_DATA_ON_STACK("slotsize", slot_size); 15 PA_IMMEDIATE_CRASH(); 16 } 17 18 } // namespace partition_alloc::internal 19