1//===----------------------------------------------------------------------===//
2// DuckDB
3//
4// jemalloc-extension.hpp
5//
6//
7//===----------------------------------------------------------------------===//
8
9#pragma once
10
11#include "duckdb.hpp"
12
13namespace duckdb {
14
15class JEMallocExtension : public Extension {
16public:
17 void Load(DuckDB &db) override;
18 std::string Name() override;
19
20 static data_ptr_t Allocate(PrivateAllocatorData *private_data, idx_t size);
21 static void Free(PrivateAllocatorData *private_data, data_ptr_t pointer, idx_t size);
22 static data_ptr_t Reallocate(PrivateAllocatorData *private_data, data_ptr_t pointer, idx_t old_size, idx_t size);
23};
24
25} // namespace duckdb
26