chromium/base/allocator/partition_allocator/src/partition_alloc/shim/allocator_shim_dispatch_to_noop_on_free.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "partition_alloc/shim/allocator_shim_dispatch_to_noop_on_free.h"

#include <cstddef>

#include "partition_alloc/partition_alloc_check.h"
#include "partition_alloc/shim/allocator_dispatch.h"
#include "partition_alloc/shim/allocator_shim.h"

namespace allocator_shim {
namespace {

void FreeFn(void* address, void* context) {}

void BatchFreeFn(void** to_be_freed, unsigned num_to_be_freed, void* context) {}

void FreeDefiniteSizeFn(void* address, size_t size, void* context) {}

void TryFreeDefaultFn(void* address, void* context) {}

static void AlignedFreeFn(void* address, void* context) {}

AllocatorDispatch allocator_dispatch =;

}  // namespace

void InsertNoOpOnFreeAllocatorShimOnShutDown() {}

}  // namespace allocator_shim