| /src/external/bsd/jemalloc.old/dist/test/unit/ |
| cache_bin.c | 5 cache_bin_sz_t ncached_max, cache_bin_sz_t nfill_attempt, 101 const int ncached_max = 100; local 106 cache_bin_info_init(&info, ncached_max); 111 expect_d_eq(ncached_max, cache_bin_info_ncached_max(&info), ""); 124 * We allocate one more item than ncached_max, so we can test cache bin 127 void **ptrs = mallocx(sizeof(void *) * (ncached_max + 1), 0); 129 for (cache_bin_sz_t i = 0; i < ncached_max; i++) { 137 expect_true(cache_bin_ncached_get_local(&bin, &info) == ncached_max, 139 success = cache_bin_dalloc_easy(&bin, &ptrs[ncached_max]); 144 for (cache_bin_sz_t i = 0; i < ncached_max; i++) 325 const int ncached_max = 100; local [all...] |
| /src/external/bsd/jemalloc/dist/test/unit/ |
| cache_bin.c | 4 do_fill_test(cache_bin_t *bin, void **ptrs, cache_bin_sz_t ncached_max, 98 const int ncached_max = 100; local 103 cache_bin_info_init(&info, ncached_max); 108 expect_d_eq(ncached_max, cache_bin_ncached_max_get(&bin), ""); 121 * We allocate one more item than ncached_max, so we can test cache bin 124 void **ptrs = mallocx(sizeof(void *) * (ncached_max + 1), 0); 126 for (cache_bin_sz_t i = 0; i < ncached_max; i++) { 134 expect_true(cache_bin_ncached_get_local(&bin) == ncached_max, ""); 135 success = cache_bin_dalloc_easy(&bin, &ptrs[ncached_max]); 140 for (cache_bin_sz_t i = 0; i < ncached_max; i++) 315 const int ncached_max = 100; local [all...] |
| ncached_max.c | 15 const char *get_name = "thread.tcache.ncached_max.read_sizeclass"; 16 size_t ncached_max; local 24 mallctlbymib(mib_get, mib_get_len, (void *)&ncached_max, 27 expect_zu_eq(ncached_max, tcache_bin_info[i].ncached_max, 28 "Unexpected ncached_max for bin %d", i); 29 /* Check ncached_max returned under a non-bin size. */ 36 expect_zu_eq(temp_ncached_max, ncached_max, 37 "Unexpected ncached_max for inaccurate bin size."); 53 /* Check ncached_max set by malloc_conf. * [all...] |
| /src/external/bsd/jemalloc.old/dist/include/jemalloc/internal/ |
| cache_bin.h | 64 cache_bin_sz_t ncached_max; member in struct:cache_bin_info_s 171 /* Returns ncached_max: Upper limit on ncached. */ 174 return info->ncached_max; 210 * Number of items currently cached in the bin, without checking ncached_max. 233 * Number of items currently cached in the bin, with checking ncached_max. The 279 info->ncached_max * sizeof(void *); 289 cache_bin_sz_t ncached_max = cache_bin_info_ncached_max(info); local 290 void **ret = cache_bin_empty_position_get(bin) - ncached_max; 479 cache_bin_sz_t ncached_max = cache_bin_info_ncached_max(info); local 485 assert(n <= ncached_max); [all...] |
| /src/external/bsd/jemalloc.old/include/jemalloc/internal/ |
| cache_bin.h | 64 cache_bin_sz_t ncached_max; member in struct:cache_bin_info_s 171 /* Returns ncached_max: Upper limit on ncached. */ 174 return info->ncached_max; 210 * Number of items currently cached in the bin, without checking ncached_max. 233 * Number of items currently cached in the bin, with checking ncached_max. The 279 info->ncached_max * sizeof(void *); 289 cache_bin_sz_t ncached_max = cache_bin_info_ncached_max(info); local 290 void **ret = cache_bin_empty_position_get(bin) - ncached_max; 479 cache_bin_sz_t ncached_max = cache_bin_info_ncached_max(info); local 485 assert(n <= ncached_max); [all...] |
| /src/external/bsd/jemalloc/dist/include/jemalloc/internal/ |
| cache_bin.h | 37 * so that the enabled/disabled assessment does not rely on ncached_max. 71 cache_bin_sz_t ncached_max; member in struct:cache_bin_info_s 205 /* Gets ncached_max without asserting that the bin is enabled. */ 208 return bin->bin_info.ncached_max; 211 /* Returns ncached_max: Upper limit on ncached. */ 245 * Number of items currently cached in the bin, without checking ncached_max. 266 * Number of items currently cached in the bin, with checking ncached_max. The 320 cache_bin_sz_t ncached_max = cache_bin_ncached_max_get(bin); local 321 void **ret = cache_bin_empty_position_get(bin) - ncached_max; 539 cache_bin_sz_t ncached_max = cache_bin_ncached_max_get(bin) local [all...] |
| /src/external/bsd/jemalloc/include/jemalloc/internal/ |
| cache_bin.h | 37 * so that the enabled/disabled assessment does not rely on ncached_max. 71 cache_bin_sz_t ncached_max; member in struct:cache_bin_info_s 205 /* Gets ncached_max without asserting that the bin is enabled. */ 208 return bin->bin_info.ncached_max; 211 /* Returns ncached_max: Upper limit on ncached. */ 245 * Number of items currently cached in the bin, without checking ncached_max. 266 * Number of items currently cached in the bin, with checking ncached_max. The 320 cache_bin_sz_t ncached_max = cache_bin_ncached_max_get(bin); local 321 void **ret = cache_bin_empty_position_get(bin) - ncached_max; 539 cache_bin_sz_t ncached_max = cache_bin_ncached_max_get(bin) local [all...] |
| /src/external/bsd/jemalloc.old/dist/src/ |
| tcache.c | 1069 unsigned ncached_max = tcache_ncached_max_compute(i); local 1070 cache_bin_info_init(&tcache_bin_info[i], ncached_max);
|
| /src/external/bsd/jemalloc/dist/src/ |
| tcache.c | 81 * tcache_bin_info_compute to avoid overwriting ncached_max specified by 134 * calculated by (ncached_max >> lg_fill_div). 169 * limit != 0: limit is set to ncached_max, indicating that the fill 722 tsd_t *tsd, size_t bin_size, cache_bin_sz_t *ncached_max) { 728 *ncached_max = 0; 737 *ncached_max = tcache_bin_disabled(bin_ind, bin, tcache->tcache_slow) 838 if (tcache_bin_info[i].ncached_max > 0) { 843 cache_bin, tcache_bin_info[i].ncached_max); 850 * store the ncached_max in the bin_info for future usage. 855 cache_bin, tcache_bin_info[i].ncached_max); 933 unsigned ncached_max = tcache_get_default_ncached_max_set(i) local 1139 size_t ncached_max; local [all...] |
| ctl.c | 425 {NAME("ncached_max"), CHILD(named, thread_tcache_ncached_max)}}; 2337 cache_bin_sz_t ncached_max = 0; local 2338 if (tcache_bin_ncached_max_read(tsd, bin_size, &ncached_max)) { 2342 size_t result = (size_t)ncached_max;
|