Add huge cache type and allow Ncache==0

This commit is contained in:
rhodgson committed 2023-02-26 14:15:28 +00:00
1 parent ff97340324
commit 7731c7db8e
2 files changed
+37 -17

No files matched your search

+2 -1
View File
@@ -35,6 +35,7 @@ NAMESPACE_BEGIN(Grid);
// Move control to configure.ac and Config.h?
#define GRID_ALLOC_SMALL_LIMIT (4096)
#define GRID_ALLOC_HUGE_LIMIT (2147483648)
#define STRINGIFY(x) #x
#define TOSTRING(x) STRINGIFY(x)
@@ -83,7 +84,7 @@ private:
} AllocationCacheEntry;
static const int NallocCacheMax=128;
static const int NallocType=6;
static const int NallocType=9;
static AllocationCacheEntry Entries[NallocType][NallocCacheMax];
static int Victim[NallocType];
static int Ncache[NallocType];