1
0
Fork 0

messed it up and fixed it

This commit is contained in:
Jan Steemann 2013-07-03 13:06:20 +02:00
parent cf04fcfc44
commit e34566aa68
1 changed files with 0 additions and 10 deletions

View File

@ -48,7 +48,6 @@
#ifdef TRI_ENABLE_MAINTAINER_MODE
#define MALLOC_WARNING_THRESHOLD (4 * 1024 * 1024)
#define MALLOC_ERROR_THRESHOLD (4* 1024 * 1024 * 1024)
#endif
////////////////////////////////////////////////////////////////////////////////
@ -130,15 +129,6 @@ static void CheckSize (uint64_t n, char const* file, int line) {
(unsigned long long) n
ZONE_DEBUG_PARAMS);
}
// fail in the case of very big malloc operations
if (n >= MALLOC_ERROR_THRESHOLD) {
fprintf(stderr,
"too big malloc action: %llu bytes" ZONE_DEBUG_LOCATION "\n",
(unsigned long long) n
ZONE_DEBUG_PARAMS);
assert(false);
}
}
#endif