1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-22 09:42:02 +01:00

Reorg memory manager for O(1) hash table

This commit is contained in:
Peter Boyle
2020-06-03 09:09:52 -04:00
parent 1d252d0922
commit 32237895bd
7 changed files with 137 additions and 93 deletions

View File

@ -55,7 +55,7 @@ public:
profilerAllocate(bytes);
_Tp *ptr = (_Tp*) AllocationCache::CpuAllocate(bytes);
_Tp *ptr = (_Tp*) MemoryManager::CpuAllocate(bytes);
assert( ( (_Tp*)ptr != (_Tp *)NULL ) );
@ -68,7 +68,7 @@ public:
profilerFree(bytes);
AllocationCache::CpuFree((void *)__p,bytes);
MemoryManager::CpuFree((void *)__p,bytes);
}
// FIXME: hack for the copy constructor, eventually it must be avoided