Header refactoring: break out ph.h dependencies

This commit is contained in:
David Goldblatt 2017-04-10 16:54:25 -07:00 committed by David Goldblatt
parent 57e36e1a12
commit 2f00ce4da7
5 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,8 @@
#ifndef JEMALLOC_INTERNAL_EXTENT_EXTERNS_H #ifndef JEMALLOC_INTERNAL_EXTENT_EXTERNS_H
#define JEMALLOC_INTERNAL_EXTENT_EXTERNS_H #define JEMALLOC_INTERNAL_EXTENT_EXTERNS_H
#include "jemalloc/internal/ph.h"
extern rtree_t extents_rtree; extern rtree_t extents_rtree;
extern const extent_hooks_t extent_hooks_default; extern const extent_hooks_t extent_hooks_default;

View File

@ -1,6 +1,8 @@
#ifndef JEMALLOC_INTERNAL_EXTENT_STRUCTS_H #ifndef JEMALLOC_INTERNAL_EXTENT_STRUCTS_H
#define JEMALLOC_INTERNAL_EXTENT_STRUCTS_H #define JEMALLOC_INTERNAL_EXTENT_STRUCTS_H
#include "jemalloc/internal/ph.h"
typedef enum { typedef enum {
extent_state_active = 0, extent_state_active = 0,
extent_state_dirty = 1, extent_state_dirty = 1,

View File

@ -180,7 +180,6 @@ static const bool have_percpu_arena =
#include <mach/vm_map.h> #include <mach/vm_map.h>
#endif #endif
#include "jemalloc/internal/ph.h"
#ifndef __PGI #ifndef __PGI
#define RB_COMPACT #define RB_COMPACT
#endif #endif

View File

@ -1,6 +1,8 @@
#define JEMALLOC_EXTENT_C_ #define JEMALLOC_EXTENT_C_
#include "jemalloc/internal/jemalloc_internal.h" #include "jemalloc/internal/jemalloc_internal.h"
#include "jemalloc/internal/ph.h"
/******************************************************************************/ /******************************************************************************/
/* Data. */ /* Data. */

View File

@ -1,5 +1,7 @@
#include "test/jemalloc_test.h" #include "test/jemalloc_test.h"
#include "jemalloc/internal/ph.h"
typedef struct node_s node_t; typedef struct node_s node_t;
struct node_s { struct node_s {