1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

feat(): Replacing STLPoolAllocator with CountingAllocator for in-memory joins

This commit is contained in:
drrtuy
2025-02-14 12:08:28 +00:00
parent 101a07d90b
commit 4c1d9bceb7
6 changed files with 86 additions and 240 deletions

View File

@ -42,6 +42,7 @@ FixedAllocator::FixedAllocator(const FixedAllocator& f)
currentlyStored = 0;
useLock = f.useLock;
lock = false;
alloc = f.alloc;
}
FixedAllocator& FixedAllocator::operator=(const FixedAllocator& f)
@ -51,6 +52,7 @@ FixedAllocator& FixedAllocator::operator=(const FixedAllocator& f)
tmpSpace = f.tmpSpace;
useLock = f.useLock;
lock = false;
alloc = f.alloc;
deallocateAll();
return *this;
}

View File

@ -116,12 +116,6 @@ STLPoolAllocator<T>::STLPoolAllocator(const STLPoolAllocator<T>& s) throw()
pa = s.pa;
}
template <class T>
STLPoolAllocator<T>::STLPoolAllocator(uint32_t capacity) throw()
{
pa.reset(new PoolAllocator(capacity));
}
template <class T>
template <class U>
STLPoolAllocator<T>::STLPoolAllocator(const STLPoolAllocator<U>& s) throw()
@ -134,17 +128,6 @@ STLPoolAllocator<T>::~STLPoolAllocator()
{
}
template <class T>
void STLPoolAllocator<T>::usePoolAllocator(boost::shared_ptr<PoolAllocator> p)
{
pa = p;
}
template <class T>
boost::shared_ptr<utils::PoolAllocator> STLPoolAllocator<T>::getPoolAllocator()
{
return pa;
}
template <class T>
typename STLPoolAllocator<T>::pointer STLPoolAllocator<T>::allocate(
typename STLPoolAllocator<T>::size_type s, typename STLPoolAllocator<T>::const_pointer hint)