summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Goldblatt <davidgoldblatt@fb.com>2017-04-11 21:43:12 (GMT)
committerDavid Goldblatt <davidtgoldblatt@gmail.com>2017-04-19 01:35:03 (GMT)
commitd9ec36e22dfe61f3fb972dee33a5cae529e46b07 (patch)
tree376a3b84d9641c8c0237e0b6f3388593bacb46ce /src
parentf692e6c214ec3fb5cb64e4131470793c6494afbd (diff)
downloadjemalloc-d9ec36e22dfe61f3fb972dee33a5cae529e46b07.zip
jemalloc-d9ec36e22dfe61f3fb972dee33a5cae529e46b07.tar.gz
jemalloc-d9ec36e22dfe61f3fb972dee33a5cae529e46b07.tar.bz2
Header refactoring: move assert.h out of the catch-all
Diffstat (limited to 'src')
-rw-r--r--src/arena.c1
-rw-r--r--src/base.c2
-rw-r--r--src/bitmap.c2
-rw-r--r--src/ckh.c1
-rw-r--r--src/ctl.c1
-rw-r--r--src/extent.c3
-rw-r--r--src/extent_dss.c2
-rw-r--r--src/extent_mmap.c2
-rw-r--r--src/jemalloc.c1
-rw-r--r--src/large.c1
-rw-r--r--src/mutex.c1
-rw-r--r--src/nstime.c2
-rw-r--r--src/pages.c1
-rw-r--r--src/prof.c1
-rw-r--r--src/rtree.c2
-rw-r--r--src/stats.c2
-rw-r--r--src/tcache.c2
-rw-r--r--src/tsd.c2
-rw-r--r--src/witness.c1
-rw-r--r--src/zone.c3
20 files changed, 32 insertions, 1 deletions
diff --git a/src/arena.c b/src/arena.c
index 27a0f75..bb45a90 100644
--- a/src/arena.c
+++ b/src/arena.c
@@ -2,6 +2,7 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
#include "jemalloc/internal/util.h"
/******************************************************************************/
diff --git a/src/base.c b/src/base.c
index caec955..3de6e3b 100644
--- a/src/base.c
+++ b/src/base.c
@@ -2,6 +2,8 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
+
/******************************************************************************/
/* Data. */
diff --git a/src/bitmap.c b/src/bitmap.c
index 2eb50f1..275636b 100644
--- a/src/bitmap.c
+++ b/src/bitmap.c
@@ -2,6 +2,8 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
+
/******************************************************************************/
void
diff --git a/src/ckh.c b/src/ckh.c
index ce977e1..aaa9792 100644
--- a/src/ckh.c
+++ b/src/ckh.c
@@ -38,6 +38,7 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
#include "jemalloc/internal/malloc_io.h"
#include "jemalloc/internal/util.h"
diff --git a/src/ctl.c b/src/ctl.c
index 29689c8..4fba2cd 100644
--- a/src/ctl.c
+++ b/src/ctl.c
@@ -2,6 +2,7 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
#include "jemalloc/internal/util.h"
/******************************************************************************/
diff --git a/src/extent.c b/src/extent.c
index 0bfc555..6b7da3f 100644
--- a/src/extent.c
+++ b/src/extent.c
@@ -1,9 +1,10 @@
#define JEMALLOC_EXTENT_C_
#include "jemalloc/internal/jemalloc_preamble.h"
+#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
#include "jemalloc/internal/ph.h"
-#include "jemalloc/internal/jemalloc_internal_includes.h"
/******************************************************************************/
/* Data. */
diff --git a/src/extent_dss.c b/src/extent_dss.c
index c609f14..06bccc8 100644
--- a/src/extent_dss.c
+++ b/src/extent_dss.c
@@ -2,6 +2,8 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
+
/******************************************************************************/
/* Data. */
diff --git a/src/extent_mmap.c b/src/extent_mmap.c
index 5717573..9381dc1 100644
--- a/src/extent_mmap.c
+++ b/src/extent_mmap.c
@@ -2,6 +2,8 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
+
/******************************************************************************/
static void *
diff --git a/src/jemalloc.c b/src/jemalloc.c
index 7e3ec6e..d6b2158 100644
--- a/src/jemalloc.c
+++ b/src/jemalloc.c
@@ -2,6 +2,7 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
#include "jemalloc/internal/atomic.h"
#include "jemalloc/internal/malloc_io.h"
#include "jemalloc/internal/util.h"
diff --git a/src/large.c b/src/large.c
index aa3ea1f..629656d 100644
--- a/src/large.c
+++ b/src/large.c
@@ -2,6 +2,7 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
#include "jemalloc/internal/util.h"
/******************************************************************************/
diff --git a/src/mutex.c b/src/mutex.c
index 92c23da..3bb5ce1 100644
--- a/src/mutex.c
+++ b/src/mutex.c
@@ -2,6 +2,7 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
#include "jemalloc/internal/malloc_io.h"
#if defined(JEMALLOC_LAZY_LOCK) && !defined(_WIN32)
diff --git a/src/nstime.c b/src/nstime.c
index ee8d78e..e089547 100644
--- a/src/nstime.c
+++ b/src/nstime.c
@@ -1,6 +1,8 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
+
#define BILLION UINT64_C(1000000000)
#define MILLION UINT64_C(1000000)
diff --git a/src/pages.c b/src/pages.c
index f113823..7fa254f 100644
--- a/src/pages.c
+++ b/src/pages.c
@@ -2,6 +2,7 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
#include "jemalloc/internal/malloc_io.h"
#ifdef JEMALLOC_SYSCTL_VM_OVERCOMMIT
diff --git a/src/prof.c b/src/prof.c
index 276ca36..f2b21f7 100644
--- a/src/prof.c
+++ b/src/prof.c
@@ -2,6 +2,7 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
#include "jemalloc/internal/malloc_io.h"
/******************************************************************************/
diff --git a/src/rtree.c b/src/rtree.c
index 8d11d99..ada6e9d 100644
--- a/src/rtree.c
+++ b/src/rtree.c
@@ -2,6 +2,8 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
+
/*
* Only the most significant bits of keys passed to rtree_{read,write}() are
* used.
diff --git a/src/stats.c b/src/stats.c
index 110d62f..bbba467 100644
--- a/src/stats.c
+++ b/src/stats.c
@@ -2,6 +2,8 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
+
const char *global_mutex_names[num_global_prof_mutexes] = {
#define OP(mtx) #mtx,
GLOBAL_PROF_MUTEXES
diff --git a/src/tcache.c b/src/tcache.c
index 7e71bb6..971c016 100644
--- a/src/tcache.c
+++ b/src/tcache.c
@@ -2,6 +2,8 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
+
/******************************************************************************/
/* Data. */
diff --git a/src/tsd.c b/src/tsd.c
index cb7dd3f..686b4ef 100644
--- a/src/tsd.c
+++ b/src/tsd.c
@@ -2,6 +2,8 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
+
/******************************************************************************/
/* Data. */
diff --git a/src/witness.c b/src/witness.c
index bd04082..edb736b 100644
--- a/src/witness.c
+++ b/src/witness.c
@@ -2,6 +2,7 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/assert.h"
#include "jemalloc/internal/malloc_io.h"
void
diff --git a/src/zone.c b/src/zone.c
index a8a571f..37bc8da 100644
--- a/src/zone.c
+++ b/src/zone.c
@@ -1,5 +1,8 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+
+#include "jemalloc/internal/assert.h"
+
#ifndef JEMALLOC_ZONE
# error "This source file is for zones on Darwin (OS X)."
#endif