1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-30 22:23:13 +03:00

zstdmt: removed margin for improved memory usage

This commit is contained in:
Yann Collet
2017-07-11 08:54:29 -07:00
parent 4616fad18b
commit ef0ff7fe7f
2 changed files with 7 additions and 7 deletions

View File

@ -118,6 +118,8 @@ static void* FUZ_mallocDebug(void* counter, size_t size)
mallocCounter_t* const mcPtr = (mallocCounter_t*)counter;
void* const ptr = malloc(size);
if (ptr==NULL) return NULL;
DISPLAYLEVEL(4, "allocating %u KB => effectively %u KB \n",
(U32)(size >> 10), (U32)(malloc_size(ptr) >> 10)); /* OS-X specific */
mcPtr->totalMalloc += size;
mcPtr->currentMalloc += size;
if (mcPtr->currentMalloc > mcPtr->peakMalloc)