summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Goldblatt <davidgoldblatt@fb.com>2017-04-11 20:31:16 (GMT)
committerDavid Goldblatt <davidtgoldblatt@gmail.com>2017-04-19 01:35:03 (GMT)
commitf692e6c214ec3fb5cb64e4131470793c6494afbd (patch)
tree2d574e35c6e7c3c87409566b04d812e979ff4b48
parent54373be0840881cb1123a190013dd11c34ab62f1 (diff)
downloadjemalloc-f692e6c214ec3fb5cb64e4131470793c6494afbd.zip
jemalloc-f692e6c214ec3fb5cb64e4131470793c6494afbd.tar.gz
jemalloc-f692e6c214ec3fb5cb64e4131470793c6494afbd.tar.bz2
Header refactoring: move util.h out of the catchall
-rw-r--r--include/jemalloc/internal/jemalloc_internal_includes.h1
-rw-r--r--include/jemalloc/internal/tcache_inlines.h2
-rw-r--r--src/arena.c2
-rw-r--r--src/ckh.c1
-rw-r--r--src/ctl.c2
-rw-r--r--src/jemalloc.c1
-rw-r--r--src/large.c2
-rw-r--r--src/malloc_io.c2
-rw-r--r--test/unit/junk.c2
-rw-r--r--test/unit/mallctl.c2
-rw-r--r--test/unit/stats_print.c2
11 files changed, 18 insertions, 1 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_includes.h b/include/jemalloc/internal/jemalloc_internal_includes.h
index d4d0c20..3a9c6ca 100644
--- a/include/jemalloc/internal/jemalloc_internal_includes.h
+++ b/include/jemalloc/internal/jemalloc_internal_includes.h
@@ -41,7 +41,6 @@
/******************************************************************************/
#include "jemalloc/internal/assert.h"
-#include "jemalloc/internal/util.h"
/******************************************************************************/
/* TYPES */
diff --git a/include/jemalloc/internal/tcache_inlines.h b/include/jemalloc/internal/tcache_inlines.h
index ea29f35..77e559a 100644
--- a/include/jemalloc/internal/tcache_inlines.h
+++ b/include/jemalloc/internal/tcache_inlines.h
@@ -1,6 +1,8 @@
#ifndef JEMALLOC_INTERNAL_TCACHE_INLINES_H
#define JEMALLOC_INTERNAL_TCACHE_INLINES_H
+#include "jemalloc/internal/util.h"
+
#ifndef JEMALLOC_ENABLE_INLINE
void tcache_event(tsd_t *tsd, tcache_t *tcache);
void tcache_flush(void);
diff --git a/src/arena.c b/src/arena.c
index 7451140..27a0f75 100644
--- a/src/arena.c
+++ b/src/arena.c
@@ -2,6 +2,8 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/util.h"
+
/******************************************************************************/
/* Data. */
diff --git a/src/ckh.c b/src/ckh.c
index a9d181b..ce977e1 100644
--- a/src/ckh.c
+++ b/src/ckh.c
@@ -39,6 +39,7 @@
#include "jemalloc/internal/jemalloc_internal_includes.h"
#include "jemalloc/internal/malloc_io.h"
+#include "jemalloc/internal/util.h"
/******************************************************************************/
/* Function prototypes for non-inline static functions. */
diff --git a/src/ctl.c b/src/ctl.c
index 7a1b03f..29689c8 100644
--- a/src/ctl.c
+++ b/src/ctl.c
@@ -2,6 +2,8 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/util.h"
+
/******************************************************************************/
/* Data. */
diff --git a/src/jemalloc.c b/src/jemalloc.c
index 4b4e943..7e3ec6e 100644
--- a/src/jemalloc.c
+++ b/src/jemalloc.c
@@ -4,6 +4,7 @@
#include "jemalloc/internal/atomic.h"
#include "jemalloc/internal/malloc_io.h"
+#include "jemalloc/internal/util.h"
/******************************************************************************/
/* Data. */
diff --git a/src/large.c b/src/large.c
index 3b53eb3..aa3ea1f 100644
--- a/src/large.c
+++ b/src/large.c
@@ -2,6 +2,8 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+#include "jemalloc/internal/util.h"
+
/******************************************************************************/
void *
diff --git a/src/malloc_io.c b/src/malloc_io.c
index 11dc68d..6b99afc 100644
--- a/src/malloc_io.c
+++ b/src/malloc_io.c
@@ -1,7 +1,9 @@
#define JEMALLOC_MALLOC_IO_C_
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
+
#include "jemalloc/internal/malloc_io.h"
+#include "jemalloc/internal/util.h"
#ifdef assert
# undef assert
diff --git a/test/unit/junk.c b/test/unit/junk.c
index cfa8d0f..f9390e4 100644
--- a/test/unit/junk.c
+++ b/test/unit/junk.c
@@ -1,5 +1,7 @@
#include "test/jemalloc_test.h"
+#include "jemalloc/internal/util.h"
+
static arena_dalloc_junk_small_t *arena_dalloc_junk_small_orig;
static large_dalloc_junk_t *large_dalloc_junk_orig;
static large_dalloc_maybe_junk_t *large_dalloc_maybe_junk_orig;
diff --git a/test/unit/mallctl.c b/test/unit/mallctl.c
index 4241063..b8c6a25 100644
--- a/test/unit/mallctl.c
+++ b/test/unit/mallctl.c
@@ -1,5 +1,7 @@
#include "test/jemalloc_test.h"
+#include "jemalloc/internal/util.h"
+
TEST_BEGIN(test_mallctl_errors) {
uint64_t epoch;
size_t sz;
diff --git a/test/unit/stats_print.c b/test/unit/stats_print.c
index 81778b0..acb26b0 100644
--- a/test/unit/stats_print.c
+++ b/test/unit/stats_print.c
@@ -1,5 +1,7 @@
#include "test/jemalloc_test.h"
+#include "jemalloc/internal/util.h"
+
typedef enum {
TOKEN_TYPE_NONE,
TOKEN_TYPE_ERROR,