aboutsummaryrefslogtreecommitdiffstats
path: root/vespamalloc/src/vespamalloc/malloc/mallocdst16_nl.cpp
blob: 41f78c5222c65a42967d3ded1ec02e23d75f09c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespamalloc/malloc/mallocdst.h>

namespace vespamalloc {

static Allocator * createAllocator()
{
    if (_GmemP == NULL) {
        _GmemP = new (_Gmem) Allocator(1, 0x7fffffffffffffffl);
    }
    return _GmemP;
}

template void MemBlockBoundsCheckBaseT<20, 16>::dumpInfo(size_t);

}

extern "C" {

int is_vespamallocdst16_nl() __attribute__((visibility ("default")));
int is_vespamallocdst16_nl() { return 1; }

}

#include <vespamalloc/malloc/overload.h>