Replace AllignedAllocator implementation with rpmalloc calls

This commit is contained in:
Lukas W
2018-04-18 08:12:56 +02:00
parent 178888af94
commit 2cb4455a5f
2 changed files with 5 additions and 23 deletions

View File

@@ -81,7 +81,7 @@ private:
class _AlignedAllocator_Base
{
protected:
void* alloc_impl( size_t n, size_t alignment );
void* alloc_impl( size_t alignment, size_t size );
void dealloc_impl( void* p );
};
@@ -97,7 +97,7 @@ public:
T* allocate( std::size_t n )
{
return reinterpret_cast<T*>( alloc_impl( sizeof(T) * n, alignment ) );
return reinterpret_cast<T*>( alloc_impl( alignment, sizeof(T) * n ) );
}
void deallocate( T* p, std::size_t )