diff options
author | David Goldblatt <davidgoldblatt@fb.com> | 2017-04-10 23:54:25 (GMT) |
---|---|---|
committer | David Goldblatt <davidtgoldblatt@gmail.com> | 2017-04-11 18:52:30 (GMT) |
commit | 2f00ce4da7b1c360a9b1129ebcdb087da562e2d4 (patch) | |
tree | d5f87dd2749df4a190ee301ab96ecca1e14b7a16 | |
parent | 57e36e1a12e5cc6af7942196a3f37c9d280ab767 (diff) | |
download | jemalloc-2f00ce4da7b1c360a9b1129ebcdb087da562e2d4.zip jemalloc-2f00ce4da7b1c360a9b1129ebcdb087da562e2d4.tar.gz jemalloc-2f00ce4da7b1c360a9b1129ebcdb087da562e2d4.tar.bz2 |
Header refactoring: break out ph.h dependencies
-rw-r--r-- | include/jemalloc/internal/extent_externs.h | 2 | ||||
-rw-r--r-- | include/jemalloc/internal/extent_structs.h | 2 | ||||
-rw-r--r-- | include/jemalloc/internal/jemalloc_internal.h.in | 1 | ||||
-rw-r--r-- | src/extent.c | 2 | ||||
-rw-r--r-- | test/unit/ph.c | 2 |
5 files changed, 8 insertions, 1 deletions
diff --git a/include/jemalloc/internal/extent_externs.h b/include/jemalloc/internal/extent_externs.h index 6c153d0..3fe4a0a 100644 --- a/include/jemalloc/internal/extent_externs.h +++ b/include/jemalloc/internal/extent_externs.h @@ -1,6 +1,8 @@ #ifndef JEMALLOC_INTERNAL_EXTENT_EXTERNS_H #define JEMALLOC_INTERNAL_EXTENT_EXTERNS_H +#include "jemalloc/internal/ph.h" + extern rtree_t extents_rtree; extern const extent_hooks_t extent_hooks_default; diff --git a/include/jemalloc/internal/extent_structs.h b/include/jemalloc/internal/extent_structs.h index 5d41bb8..87107a8 100644 --- a/include/jemalloc/internal/extent_structs.h +++ b/include/jemalloc/internal/extent_structs.h @@ -1,6 +1,8 @@ #ifndef JEMALLOC_INTERNAL_EXTENT_STRUCTS_H #define JEMALLOC_INTERNAL_EXTENT_STRUCTS_H +#include "jemalloc/internal/ph.h" + typedef enum { extent_state_active = 0, extent_state_dirty = 1, diff --git a/include/jemalloc/internal/jemalloc_internal.h.in b/include/jemalloc/internal/jemalloc_internal.h.in index 73c5d3a..7756b8f 100644 --- a/include/jemalloc/internal/jemalloc_internal.h.in +++ b/include/jemalloc/internal/jemalloc_internal.h.in @@ -180,7 +180,6 @@ static const bool have_percpu_arena = #include <mach/vm_map.h> #endif -#include "jemalloc/internal/ph.h" #ifndef __PGI #define RB_COMPACT #endif diff --git a/src/extent.c b/src/extent.c index e080773..b6c3f4b 100644 --- a/src/extent.c +++ b/src/extent.c @@ -1,6 +1,8 @@ #define JEMALLOC_EXTENT_C_ #include "jemalloc/internal/jemalloc_internal.h" +#include "jemalloc/internal/ph.h" + /******************************************************************************/ /* Data. */ diff --git a/test/unit/ph.c b/test/unit/ph.c index 01df340..88bf56f 100644 --- a/test/unit/ph.c +++ b/test/unit/ph.c @@ -1,5 +1,7 @@ #include "test/jemalloc_test.h" +#include "jemalloc/internal/ph.h" + typedef struct node_s node_t; struct node_s { |