// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include #include namespace vespamalloc { typedef ThreadListT ThreadList; typedef MemoryWatcher Allocator; static char _Gmem[sizeof(Allocator)]; static Allocator *_GmemP = nullptr; static Allocator * createAllocator() { if (_GmemP == nullptr) { _GmemP = new (_Gmem) Allocator(-1, 0x7fffffffffffffffl); } return _GmemP; } template void MemBlockBoundsCheckBaseT:: dumpInfo(size_t level) { _GmemP->info(_logFile, level); } template void MemBlockBoundsCheckBaseT<20, 0>::dumpInfo(size_t); } extern "C" { int is_vespamallocd() __attribute__((visibility ("default"))); int is_vespamallocd() { return 1; } } #include