summaryrefslogtreecommitdiffstats
path: root/vespamalloc/src/vespamalloc/malloc/mallocdst16_nl.cpp
blob: e1bd28cac48fb979aeddf0c71464153e8ed6c7a1 (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 2017 Yahoo Holdings. 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>