2010-01-17 01:53:50 +08:00
|
|
|
/******************************************************************************/
|
|
|
|
#ifdef JEMALLOC_H_TYPES
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Size and alignment of memory chunks that are allocated by the OS's virtual
|
|
|
|
* memory system.
|
|
|
|
*/
|
2015-07-16 08:15:26 +08:00
|
|
|
#define LG_CHUNK_DEFAULT 21
|
2010-01-17 01:53:50 +08:00
|
|
|
|
|
|
|
/* Return the smallest chunk multiple that is >= s. */
|
|
|
|
#define CHUNK_CEILING(s) \
|
|
|
|
(((s) + chunksize_mask) & ~chunksize_mask)
|
|
|
|
|
|
|
|
#endif /* JEMALLOC_H_TYPES */
|
|
|
|
/******************************************************************************/
|
|
|
|
#ifdef JEMALLOC_H_STRUCTS
|
|
|
|
|
|
|
|
#endif /* JEMALLOC_H_STRUCTS */
|
|
|
|
/******************************************************************************/
|
|
|
|
#ifdef JEMALLOC_H_EXTERNS
|
|
|
|
|
2010-01-24 18:53:40 +08:00
|
|
|
extern size_t opt_lg_chunk;
|
2012-10-12 04:53:15 +08:00
|
|
|
extern const char *opt_dss;
|
2010-01-24 18:53:40 +08:00
|
|
|
|
2010-01-17 01:53:50 +08:00
|
|
|
extern size_t chunksize;
|
|
|
|
extern size_t chunksize_mask; /* (chunksize - 1). */
|
|
|
|
extern size_t chunk_npages;
|
|
|
|
|
2012-04-22 10:17:21 +08:00
|
|
|
bool chunk_boot(void);
|
2010-01-17 01:53:50 +08:00
|
|
|
|
|
|
|
#endif /* JEMALLOC_H_EXTERNS */
|
|
|
|
/******************************************************************************/
|
|
|
|
#ifdef JEMALLOC_H_INLINES
|
|
|
|
|
|
|
|
#endif /* JEMALLOC_H_INLINES */
|
|
|
|
/******************************************************************************/
|