Browse Source

HPCC-14287 Fix jptree attrvalue allocator to use memsize_t

Previously based on size32_t limit, when underlying allocator
is based on memsize_t.
It meant that after 4GB of AttrValue's it would hit a jbuf error
'Out of memory'

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Jake Smith 9 years ago
parent
commit
0844a50dfb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      system/jlib/jptree.cpp

+ 1 - 1
system/jlib/jptree.cpp

@@ -189,7 +189,7 @@ static AtomRefTable *keyTable, *keyTableNC;
 static CAttrValHashTable *attrHT=NULL;
 AttrValue **AttrMap::freelist=NULL; 
 unsigned AttrMap::freelistmax=0; 
-CLargeMemoryAllocator AttrMap::freeallocator((size32_t)-1,0x1000*sizeof(AttrValue),true);
+CLargeMemoryAllocator AttrMap::freeallocator((memsize_t)-1,0x1000*sizeof(AttrValue),true);
 
 
 MODULE_INIT(INIT_PRIORITY_JPTREE)