Put szind_t, pszind_t in sz.h.
This commit is contained in:
parent
7e6c8a7286
commit
34b7165fde
@ -2,6 +2,7 @@
|
|||||||
#define JEMALLOC_INTERNAL_CACHE_BIN_H
|
#define JEMALLOC_INTERNAL_CACHE_BIN_H
|
||||||
|
|
||||||
#include "jemalloc/internal/ql.h"
|
#include "jemalloc/internal/ql.h"
|
||||||
|
#include "jemalloc/internal/sz.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The cache_bins are the mechanism that the tcache and the arena use to
|
* The cache_bins are the mechanism that the tcache and the arena use to
|
||||||
|
@ -3,12 +3,6 @@
|
|||||||
|
|
||||||
#include "jemalloc/internal/quantum.h"
|
#include "jemalloc/internal/quantum.h"
|
||||||
|
|
||||||
/* Page size index type. */
|
|
||||||
typedef unsigned pszind_t;
|
|
||||||
|
|
||||||
/* Size class index type. */
|
|
||||||
typedef unsigned szind_t;
|
|
||||||
|
|
||||||
/* Processor / core id type. */
|
/* Processor / core id type. */
|
||||||
typedef int malloc_cpuid_t;
|
typedef int malloc_cpuid_t;
|
||||||
|
|
||||||
|
@ -22,6 +22,12 @@
|
|||||||
* size that would result from such an allocation.
|
* size that would result from such an allocation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* Page size index type. */
|
||||||
|
typedef unsigned pszind_t;
|
||||||
|
|
||||||
|
/* Size class index type. */
|
||||||
|
typedef unsigned szind_t;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* sz_pind2sz_tab encodes the same information as could be computed by
|
* sz_pind2sz_tab encodes the same information as could be computed by
|
||||||
* sz_pind2sz_compute().
|
* sz_pind2sz_compute().
|
||||||
|
Loading…
Reference in New Issue
Block a user