Skip to content

Commit 3a9ec67

Browse files
committed
Disable junk filling for tests that could otherwise easily OOM.
1 parent c1e00ef commit 3a9ec67

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

test/integration/mallocx.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#include "test/jemalloc_test.h"
22

3+
#ifdef JEMALLOC_FILL
4+
const char *malloc_conf = "junk:false";
5+
#endif
6+
37
static unsigned
48
get_nsizes_impl(const char *cmd)
59
{

test/integration/xallocx.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#include "test/jemalloc_test.h"
22

3+
#ifdef JEMALLOC_FILL
4+
const char *malloc_conf = "junk:false";
5+
#endif
6+
37
/*
48
* Use a separate arena for xallocx() extension/contraction tests so that
59
* internal allocation e.g. by heap profiling can't interpose allocations where

0 commit comments

Comments
 (0)