Add DSS allocation path unit tests

This commit is contained in:
Slobodan Predolac 2026-05-11 12:48:51 -07:00
parent 6e7c364e90
commit 163c871d6c
4 changed files with 211 additions and 0 deletions

View file

@ -33,11 +33,20 @@ static atomic_b_t dss_exhausted;
/* Atomic current upper limit on DSS addresses. */
static atomic_p_t dss_max;
#ifdef JEMALLOC_JET
extent_dss_sbrk_hook_t extent_dss_sbrk_hook = NULL;
#endif
/******************************************************************************/
static void *
extent_dss_sbrk(intptr_t increment) {
#ifdef JEMALLOC_DSS
#ifdef JEMALLOC_JET
if (extent_dss_sbrk_hook != NULL) {
return extent_dss_sbrk_hook(increment);
}
#endif
return sbrk(increment);
#else
not_implemented();