1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-07-04 23:47:06 +01:00

Remove commAllocator; make more simple; option to switch off the pointer caceh

This commit is contained in:
paboyle
2018-01-25 23:33:57 +00:00
parent a3e3034e6f
commit c844cfcda8
2 changed files with 29 additions and 6 deletions

View File

@ -6,6 +6,7 @@ NAMESPACE_BEGIN(Grid);
MemoryStats *MemoryProfiler::stats = nullptr;
bool MemoryProfiler::debug = false;
#ifdef POINTER_CACHE
int PointerCache::victim;
PointerCache::PointerCacheEntry PointerCache::Entries[PointerCache::Ncache];
@ -63,7 +64,7 @@ void *PointerCache::Lookup(size_t bytes) {
}
return NULL;
}
#endif
void check_huge_pages(void *Buf,uint64_t BYTES)
{