Skip to content

Commit 7ebc838

Browse files
Header refactoring: move jemalloc_internal_types.h out of the catch-all
1 parent d9ec36e commit 7ebc838

7 files changed

Lines changed: 10 additions & 3 deletions

File tree

include/jemalloc/internal/arena_inlines_b.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef JEMALLOC_INTERNAL_ARENA_INLINES_B_H
22
#define JEMALLOC_INTERNAL_ARENA_INLINES_B_H
33

4+
#include "jemalloc/internal/jemalloc_internal_types.h"
5+
46
#ifndef JEMALLOC_ENABLE_INLINE
57
szind_t arena_bin_index(arena_t *arena, arena_bin_t *bin);
68
prof_tctx_t *arena_prof_tctx_get(tsdn_t *tsdn, const void *ptr,

include/jemalloc/internal/jemalloc_internal_includes.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
/* TYPES */
4141
/******************************************************************************/
4242

43-
#include "jemalloc/internal/jemalloc_internal_types.h"
4443
#include "jemalloc/internal/nstime_types.h"
4544
#include "jemalloc/internal/spin_types.h"
4645
#include "jemalloc/internal/prng_types.h"

include/jemalloc/internal/jemalloc_internal_inlines_a.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include "jemalloc/internal/atomic.h"
55
#include "jemalloc/internal/bit_util.h"
6+
#include "jemalloc/internal/jemalloc_internal_types.h"
67

78
#ifndef JEMALLOC_ENABLE_INLINE
89
pszind_t psz2ind(size_t psz);

include/jemalloc/internal/jemalloc_internal_inlines_c.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef JEMALLOC_INTERNAL_INLINES_C_H
22
#define JEMALLOC_INTERNAL_INLINES_C_H
33

4+
#include "jemalloc/internal/jemalloc_internal_types.h"
5+
46
#ifndef JEMALLOC_ENABLE_INLINE
57
arena_t *iaalloc(tsdn_t *tsdn, const void *ptr);
68
size_t isalloc(tsdn_t *tsdn, const void *ptr);

include/jemalloc/internal/size_classes.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,10 @@ cat <<EOF
279279
280280
/* This file was automatically generated by size_classes.sh. */
281281
282+
#include "jemalloc/internal/jemalloc_internal_types.h"
283+
282284
/*
283-
* This header requires LG_SIZEOF_PTR, LG_TINY_MIN, LG_QUANTUM, and LG_PAGE to
284-
* be defined prior to inclusion, and it in turn defines:
285+
* This header file defines:
285286
*
286287
* LG_SIZE_CLASS_GROUP: Lg of size class count for each size doubling.
287288
* SIZE_CLASSES: Complete table of SC(index, lg_grp, lg_delta, ndelta, psz,

include/jemalloc/internal/tcache_inlines.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef JEMALLOC_INTERNAL_TCACHE_INLINES_H
22
#define JEMALLOC_INTERNAL_TCACHE_INLINES_H
33

4+
#include "jemalloc/internal/jemalloc_internal_types.h"
45
#include "jemalloc/internal/util.h"
56

67
#ifndef JEMALLOC_ENABLE_INLINE

src/jemalloc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include "jemalloc/internal/assert.h"
66
#include "jemalloc/internal/atomic.h"
7+
#include "jemalloc/internal/jemalloc_internal_types.h"
78
#include "jemalloc/internal/malloc_io.h"
89
#include "jemalloc/internal/util.h"
910

0 commit comments

Comments
 (0)