mirror of https://gitee.com/bigwinds/arangodb
messed it up and fixed it
This commit is contained in:
parent
cf04fcfc44
commit
e34566aa68
|
@ -48,7 +48,6 @@
|
||||||
|
|
||||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||||
#define MALLOC_WARNING_THRESHOLD (4 * 1024 * 1024)
|
#define MALLOC_WARNING_THRESHOLD (4 * 1024 * 1024)
|
||||||
#define MALLOC_ERROR_THRESHOLD (4* 1024 * 1024 * 1024)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -130,15 +129,6 @@ static void CheckSize (uint64_t n, char const* file, int line) {
|
||||||
(unsigned long long) n
|
(unsigned long long) n
|
||||||
ZONE_DEBUG_PARAMS);
|
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
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue