2010-01-24 18:53:40 +08:00
|
|
|
#ifdef JEMALLOC_DSS
|
|
|
|
/******************************************************************************/
|
|
|
|
#ifdef JEMALLOC_H_TYPES
|
|
|
|
|
|
|
|
#endif /* JEMALLOC_H_TYPES */
|
|
|
|
/******************************************************************************/
|
|
|
|
#ifdef JEMALLOC_H_STRUCTS
|
|
|
|
|
|
|
|
#endif /* JEMALLOC_H_STRUCTS */
|
|
|
|
/******************************************************************************/
|
|
|
|
#ifdef JEMALLOC_H_EXTERNS
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Protects sbrk() calls. This avoids malloc races among threads, though it
|
|
|
|
* does not protect against races with threads that call sbrk() directly.
|
|
|
|
*/
|
|
|
|
extern malloc_mutex_t dss_mtx;
|
|
|
|
|
2010-01-25 09:13:07 +08:00
|
|
|
void *chunk_alloc_dss(size_t size, bool *zero);
|
2010-12-01 08:50:58 +08:00
|
|
|
bool chunk_in_dss(void *chunk);
|
2010-01-24 18:53:40 +08:00
|
|
|
bool chunk_dealloc_dss(void *chunk, size_t size);
|
|
|
|
bool chunk_dss_boot(void);
|
|
|
|
|
|
|
|
#endif /* JEMALLOC_H_EXTERNS */
|
|
|
|
/******************************************************************************/
|
|
|
|
#ifdef JEMALLOC_H_INLINES
|
|
|
|
|
|
|
|
#endif /* JEMALLOC_H_INLINES */
|
|
|
|
/******************************************************************************/
|
|
|
|
#endif /* JEMALLOC_DSS */
|