You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
fix(perf,allocator): test build with reduced CountingAllocator parameter values.
This commit is contained in:
@ -63,13 +63,13 @@ void PoolAllocator::newBlock()
|
||||
{
|
||||
if (alloc)
|
||||
{
|
||||
std::cout << "PoolAllocator new block with counting alloc" << std::endl;
|
||||
// std::cout << "PoolAllocator new block with counting alloc" << std::endl;
|
||||
|
||||
mem.emplace_back(boost::allocate_shared<PoolAllocatorBufType>(*alloc, allocSize));
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "PoolAllocator new block w/o counting alloc" << std::endl;
|
||||
// std::cout << "PoolAllocator new block w/o counting alloc" << std::endl;
|
||||
mem.emplace_back(boost::make_shared<PoolAllocatorBufType>(allocSize));
|
||||
}
|
||||
nextAlloc = mem.back().get();
|
||||
@ -81,17 +81,17 @@ void PoolAllocator::newBlock()
|
||||
void* PoolAllocator::allocOOB(uint64_t size)
|
||||
{
|
||||
OOBMemInfo memInfo;
|
||||
std::cout << "PoolAllocator allocOOB" << std::endl;
|
||||
// std::cout << "PoolAllocator allocOOB" << std::endl;
|
||||
|
||||
memUsage += size;
|
||||
if (alloc)
|
||||
{
|
||||
std::cout << "PoolAllocator allocOOB with counting alloc" << std::endl;
|
||||
// std::cout << "PoolAllocator allocOOB with counting alloc" << std::endl;
|
||||
memInfo.mem = boost::allocate_shared<PoolAllocatorBufType>(*alloc, size);
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "PoolAllocator allocOOB w/o counting alloc" << std::endl;
|
||||
// std::cout << "PoolAllocator allocOOB w/o counting alloc" << std::endl;
|
||||
memInfo.mem = boost::make_shared<PoolAllocatorBufType>(size);
|
||||
}
|
||||
memInfo.size = size;
|
||||
|
@ -101,13 +101,13 @@ STLPoolAllocator<T>::STLPoolAllocator(joblist::ResourceManager* rm)
|
||||
{
|
||||
if (rm)
|
||||
{
|
||||
std::cout << "STLPoolAllocator with RM " << std::endl;
|
||||
auto alloc = rm->getAllocator<PoolAllocatorBufType>();
|
||||
// std::cout << "STLPoolAllocator with RM " << std::endl;
|
||||
auto alloc = rm->getAllocator<PoolAllocatorBufType>(1024);
|
||||
pa.reset(new PoolAllocator(alloc, DEFAULT_SIZE));
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "STLPoolAllocator w/o RM " << std::endl;
|
||||
// std::cout << "STLPoolAllocator w/o RM " << std::endl;
|
||||
pa.reset(new PoolAllocator(DEFAULT_SIZE));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user