base.c (234370) | base.c (242844) |
---|---|
1#define JEMALLOC_BASE_C_ 2#include "jemalloc/internal/jemalloc_internal.h" 3 4/******************************************************************************/ 5/* Data. */ 6 7static malloc_mutex_t base_mtx; 8 --- 18 unchanged lines hidden (view full) --- 27base_pages_alloc(size_t minsize) 28{ 29 size_t csize; 30 bool zero; 31 32 assert(minsize != 0); 33 csize = CHUNK_CEILING(minsize); 34 zero = false; | 1#define JEMALLOC_BASE_C_ 2#include "jemalloc/internal/jemalloc_internal.h" 3 4/******************************************************************************/ 5/* Data. */ 6 7static malloc_mutex_t base_mtx; 8 --- 18 unchanged lines hidden (view full) --- 27base_pages_alloc(size_t minsize) 28{ 29 size_t csize; 30 bool zero; 31 32 assert(minsize != 0); 33 csize = CHUNK_CEILING(minsize); 34 zero = false; |
35 base_pages = chunk_alloc(csize, chunksize, true, &zero); | 35 base_pages = chunk_alloc(csize, chunksize, true, &zero, 36 chunk_dss_prec_get()); |
36 if (base_pages == NULL) 37 return (true); 38 base_next_addr = base_pages; 39 base_past_addr = (void *)((uintptr_t)base_pages + csize); 40 41 return (false); 42} 43 --- 95 unchanged lines hidden --- | 37 if (base_pages == NULL) 38 return (true); 39 base_next_addr = base_pages; 40 base_past_addr = (void *)((uintptr_t)base_pages + csize); 41 42 return (false); 43} 44 --- 95 unchanged lines hidden --- |