Searched refs:dss_max (Results 1 – 2 of 2) sorted by relevance
/external/jemalloc/src/ |
D | chunk_dss.c | 26 static void *dss_max; variable 75 void *max_prev = atomic_read_p(&dss_max); in chunk_dss_max_update() 86 if (!atomic_cas_p(&dss_max, max_prev, max_cur)) in chunk_dss_max_update() 130 gap_size = (chunksize - CHUNK_ADDR2OFFSET(dss_max)) & in chunk_alloc_dss() 137 cpad = (void *)((uintptr_t)dss_max + gap_size); in chunk_alloc_dss() 138 ret = (void *)ALIGNMENT_CEILING((uintptr_t)dss_max, in chunk_alloc_dss() 142 if ((uintptr_t)ret < (uintptr_t)dss_max || in chunk_alloc_dss() 143 (uintptr_t)dss_next < (uintptr_t)dss_max) in chunk_alloc_dss() 153 if (atomic_cas_p(&dss_max, max_cur, dss_next)) in chunk_alloc_dss() 186 atomic_cas_p(&dss_max, dss_next, max_cur); in chunk_alloc_dss() [all …]
|
/external/jemalloc_new/src/ |
D | extent_dss.c | 37 static atomic_p_t dss_max; variable 101 atomic_store_p(&dss_max, max_cur, ATOMIC_RELEASE); in extent_dss_max_update() 183 atomic_store_p(&dss_max, dss_next, in extent_alloc_dss() 240 return extent_in_dss_helper(addr, atomic_load_p(&dss_max, in extent_in_dss() 255 max = atomic_load_p(&dss_max, ATOMIC_ACQUIRE); in extent_dss_mergeable() 267 atomic_store_p(&dss_max, dss_base, ATOMIC_RELAXED); in extent_dss_boot()
|