#include namespace Grid { int PointerCache::victim; PointerCache::PointerCacheEntry PointerCache::Entries[PointerCache::Ncache]; void *PointerCache::Insert(void *ptr,size_t bytes) { if (bytes < 4096 ) return ptr; #ifdef GRID_OMP assert(omp_in_parallel()==0); #endif void * ret = NULL; int v = -1; for(int e=0;e