Disable junk filling for tests that could otherwise easily OOM.

This commit is contained in:
Jason Evans 2016-05-11 00:52:16 -07:00
parent c1e00ef2a6
commit 3a9ec67626
2 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,9 @@
#include "test/jemalloc_test.h" #include "test/jemalloc_test.h"
#ifdef JEMALLOC_FILL
const char *malloc_conf = "junk:false";
#endif
static unsigned static unsigned
get_nsizes_impl(const char *cmd) get_nsizes_impl(const char *cmd)
{ {

View File

@ -1,5 +1,9 @@
#include "test/jemalloc_test.h" #include "test/jemalloc_test.h"
#ifdef JEMALLOC_FILL
const char *malloc_conf = "junk:false";
#endif
/* /*
* Use a separate arena for xallocx() extension/contraction tests so that * Use a separate arena for xallocx() extension/contraction tests so that
* internal allocation e.g. by heap profiling can't interpose allocations where * internal allocation e.g. by heap profiling can't interpose allocations where