Put szind_t, pszind_t in sz.h.

This commit is contained in:
David T. Goldblatt 2020-02-17 11:48:42 -08:00 committed by David Goldblatt
parent 7e6c8a7286
commit 34b7165fde
3 changed files with 7 additions and 6 deletions

View File

@ -2,6 +2,7 @@
#define JEMALLOC_INTERNAL_CACHE_BIN_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

View File

@ -3,12 +3,6 @@
#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. */
typedef int malloc_cpuid_t;

View File

@ -22,6 +22,12 @@
* 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_compute().