| /src/external/bsd/jemalloc/dist/test/unit/ |
| san_bump.c | 10 tsdn_t *tsdn = tsdn_fetch(); local 18 arena_t *arena = arena_get(tsdn, arena_ind, false); 23 edata_t* edata = san_bump_alloc(tsdn, &sba, pac, pac_ehooks_get(pac), 44 edata_t *edata2 = san_bump_alloc(tsdn, &sba, pac, pac_ehooks_get(pac), 75 tsdn_t *tsdn = tsdn_fetch(); local 83 arena_t *arena = arena_get(tsdn, arena_ind, false); 87 edata_t* edata = san_bump_alloc(tsdn, &sba, pac, pac_ehooks_get(pac),
|
| base.c | 33 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 34 base = base_new(tsdn, 0, 39 base_stats_get(tsdn, base, &allocated0, &resident, &mapped, 49 expect_ptr_not_null(base_alloc(tsdn, base, 42, 1), 53 base_stats_get(tsdn, base, &allocated1, &resident, &mapped, 59 base_delete(tsdn, base); 77 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 78 base = base_new(tsdn, 0, &hooks, /* metadata_use_hooks */ true); 82 base_stats_get(tsdn, base, &allocated0, &resident, &mapped, 92 expect_ptr_not_null(base_alloc(tsdn, base, 42, 1) 122 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 234 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 248 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local [all...] |
| buf_writer.c | 23 test_buf_writer_body(tsdn_t *tsdn, buf_writer_t *buf_writer) { 62 buf_writer_terminate(tsdn, buf_writer); 67 tsdn_t *tsdn = tsdn_fetch(); local 68 assert_false(buf_writer_init(tsdn, &buf_writer, test_write_cb, &arg, 71 test_buf_writer_body(tsdn, &buf_writer); 77 tsdn_t *tsdn = tsdn_fetch(); local 78 assert_false(buf_writer_init(tsdn, &buf_writer, test_write_cb, &arg, 80 test_buf_writer_body(tsdn, &buf_writer); 86 tsdn_t *tsdn = tsdn_fetch(); local 87 assert_true(buf_writer_init(tsdn, &buf_writer, test_write_cb, &arg 171 tsdn_t *tsdn = tsdn_fetch(); local 181 tsdn_t *tsdn = tsdn_fetch(); local [all...] |
| binshard.c | 59 tsdn_t *tsdn = tsdn_fetch(); local 65 edata = emap_edata_lookup(tsdn, &arena_emap_global, ptr); 70 edata = emap_edata_lookup(tsdn, &arena_emap_global, ptr2);
|
| rtree.c | 11 tsdn_t *tsdn; local 13 tsdn = tsdn_fetch(); 15 base_t *base = base_new(tsdn, 0, &ehooks_default_extent_hooks, 25 expect_true(rtree_read_independent(tsdn, rtree, &rtree_ctx, PAGE, 28 base_delete(tsdn, base); 54 tsdn_t *tsdn = tsdn_fetch(); local 56 base_t *base = base_new(tsdn, 0, &ehooks_default_extent_hooks, 72 expect_false(rtree_write(tsdn, rtree, &rtree_ctx, PAGE, contents_a), 74 expect_false(rtree_write(tsdn, rtree, &rtree_ctx, PAGE, contents_a), 76 rtree_contents_t read_contents_a = rtree_read(tsdn, rtree, &rtree_ctx 107 tsdn_t *tsdn = tsdn_fetch(); local 156 tsdn_t *tsdn = tsdn_fetch(); local 256 tsdn_t *tsdn = tsdn_fetch(); local [all...] |
| san.c | 8 verify_extent_guarded(tsdn_t *tsdn, void *ptr) { 9 expect_true(extent_is_guarded(tsdn, ptr), 24 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 36 verify_extent_guarded(tsdn, ptr); 72 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 80 verify_extent_guarded(tsdn, ptr); 142 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 147 verify_extent_guarded(tsdn, p1); 151 verify_extent_guarded(tsdn, p2); 183 verify_extent_guarded(tsdn, p1) [all...] |
| arena_reset.c | 62 vsalloc(tsdn_t *tsdn, const void *ptr) { 64 bool missing = emap_full_alloc_ctx_try_lookup(tsdn, &arena_emap_global, 100 tsdn_t *tsdn; local 124 tsdn = tsdn_fetch(); 128 expect_zu_gt(ivsalloc(tsdn, (*ptrs)[i]), 0, 135 tsdn_t *tsdn; local 138 tsdn = tsdn_fetch(); 141 malloc_mutex_lock(tsdn, 146 expect_zu_eq(vsalloc(tsdn, ptrs[i]), 0, 150 malloc_mutex_unlock(tsdn, [all...] |
| sec.c | 53 pai_test_allocator_alloc(tsdn_t *tsdn, pai_t *self, size_t size, 75 pai_test_allocator_alloc_batch(tsdn_t *tsdn, pai_t *self, size_t size, 98 pai_test_allocator_expand(tsdn_t *tsdn, pai_t *self, edata_t *edata, 107 pai_test_allocator_shrink(tsdn_t *tsdn, pai_t *self, edata_t *edata, 115 pai_test_allocator_dalloc(tsdn_t *tsdn, pai_t *self, edata_t *edata, 123 pai_test_allocator_dalloc_batch(tsdn_t *tsdn, pai_t *self, 166 tsdn_t *tsdn = TSDN_NULL; local 181 one_page[i] = pai_alloc(tsdn, &sec.pai, PAGE, PAGE, 185 two_page[i] = pai_alloc(tsdn, &sec.pai, 2 * PAGE, PAGE, 201 pai_dalloc(tsdn, &sec.pai, one_page[i] 241 tsdn_t *tsdn = TSDN_NULL; local 307 tsdn_t *tsdn = TSDN_NULL; local 374 tsdn_t *tsdn = TSDN_NULL; local 411 tsdn_t *tsdn = TSDN_NULL; local 449 tsdn_t *tsdn = TSDN_NULL; local 487 tsdn_t *tsdn = TSDN_NULL; local 531 tsdn_t *tsdn = TSDN_NULL; local 583 tsdn_t *tsdn = TSDN_NULL; local [all...] |
| hpa.c | 78 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 84 edata = pai_alloc(tsdn, &shard->pai, ALLOC_MAX, PAGE, false, false, 87 edata = pai_alloc(tsdn, &shard->pai, ALLOC_MAX + PAGE, PAGE, false, 159 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 191 edata_t *edata = pai_alloc(tsdn, &shard->pai, 209 pai_dalloc(tsdn, &shard->pai, to_free, 229 pai_dalloc(tsdn, &shard->pai, to_free, 232 hpa_shard_destroy(tsdn, shard); 254 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 266 allocs[i] = pai_alloc(tsdn, &shard->pai, PAGE, PAGE 382 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local [all...] |
| /src/external/bsd/jemalloc.old/dist/test/unit/ |
| san_bump.c | 10 tsdn_t *tsdn = tsdn_fetch(); local 18 arena_t *arena = arena_get(tsdn, arena_ind, false); 23 edata_t* edata = san_bump_alloc(tsdn, &sba, pac, pac_ehooks_get(pac), 44 edata_t *edata2 = san_bump_alloc(tsdn, &sba, pac, pac_ehooks_get(pac), 75 tsdn_t *tsdn = tsdn_fetch(); local 83 arena_t *arena = arena_get(tsdn, arena_ind, false); 87 edata_t* edata = san_bump_alloc(tsdn, &sba, pac, pac_ehooks_get(pac),
|
| base.c | 33 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 34 base = base_new(tsdn, 0, 39 base_stats_get(tsdn, base, &allocated0, &resident, &mapped, 49 expect_ptr_not_null(base_alloc(tsdn, base, 42, 1), 53 base_stats_get(tsdn, base, &allocated1, &resident, &mapped, 59 base_delete(tsdn, base); 77 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 78 base = base_new(tsdn, 0, &hooks, /* metadata_use_hooks */ true); 82 base_stats_get(tsdn, base, &allocated0, &resident, &mapped, 92 expect_ptr_not_null(base_alloc(tsdn, base, 42, 1) 122 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 234 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 248 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local [all...] |
| buf_writer.c | 23 test_buf_writer_body(tsdn_t *tsdn, buf_writer_t *buf_writer) { 62 buf_writer_terminate(tsdn, buf_writer); 67 tsdn_t *tsdn = tsdn_fetch(); local 68 assert_false(buf_writer_init(tsdn, &buf_writer, test_write_cb, &arg, 71 test_buf_writer_body(tsdn, &buf_writer); 77 tsdn_t *tsdn = tsdn_fetch(); local 78 assert_false(buf_writer_init(tsdn, &buf_writer, test_write_cb, &arg, 80 test_buf_writer_body(tsdn, &buf_writer); 86 tsdn_t *tsdn = tsdn_fetch(); local 87 assert_true(buf_writer_init(tsdn, &buf_writer, test_write_cb, &arg 171 tsdn_t *tsdn = tsdn_fetch(); local 181 tsdn_t *tsdn = tsdn_fetch(); local [all...] |
| binshard.c | 59 tsdn_t *tsdn = tsdn_fetch(); local 65 edata = emap_edata_lookup(tsdn, &arena_emap_global, ptr); 70 edata = emap_edata_lookup(tsdn, &arena_emap_global, ptr2);
|
| rtree.c | 11 tsdn_t *tsdn; local 13 tsdn = tsdn_fetch(); 15 base_t *base = base_new(tsdn, 0, &ehooks_default_extent_hooks, 25 expect_true(rtree_read_independent(tsdn, rtree, &rtree_ctx, PAGE, 28 base_delete(tsdn, base); 54 tsdn_t *tsdn = tsdn_fetch(); local 56 base_t *base = base_new(tsdn, 0, &ehooks_default_extent_hooks, 72 expect_false(rtree_write(tsdn, rtree, &rtree_ctx, PAGE, contents_a), 74 expect_false(rtree_write(tsdn, rtree, &rtree_ctx, PAGE, contents_a), 76 rtree_contents_t read_contents_a = rtree_read(tsdn, rtree, &rtree_ctx 107 tsdn_t *tsdn = tsdn_fetch(); local 156 tsdn_t *tsdn = tsdn_fetch(); local 256 tsdn_t *tsdn = tsdn_fetch(); local [all...] |
| san.c | 8 verify_extent_guarded(tsdn_t *tsdn, void *ptr) { 9 expect_true(extent_is_guarded(tsdn, ptr), 24 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 36 verify_extent_guarded(tsdn, ptr); 72 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 80 verify_extent_guarded(tsdn, ptr); 142 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 147 verify_extent_guarded(tsdn, p1); 151 verify_extent_guarded(tsdn, p2); 183 verify_extent_guarded(tsdn, p1) [all...] |
| arena_reset.c | 62 vsalloc(tsdn_t *tsdn, const void *ptr) { 64 bool missing = emap_full_alloc_ctx_try_lookup(tsdn, &arena_emap_global, 100 tsdn_t *tsdn; local 124 tsdn = tsdn_fetch(); 128 expect_zu_gt(ivsalloc(tsdn, (*ptrs)[i]), 0, 135 tsdn_t *tsdn; local 138 tsdn = tsdn_fetch(); 141 malloc_mutex_lock(tsdn, 146 expect_zu_eq(vsalloc(tsdn, ptrs[i]), 0, 150 malloc_mutex_unlock(tsdn, [all...] |
| sec.c | 53 pai_test_allocator_alloc(tsdn_t *tsdn, pai_t *self, size_t size, 75 pai_test_allocator_alloc_batch(tsdn_t *tsdn, pai_t *self, size_t size, 98 pai_test_allocator_expand(tsdn_t *tsdn, pai_t *self, edata_t *edata, 107 pai_test_allocator_shrink(tsdn_t *tsdn, pai_t *self, edata_t *edata, 115 pai_test_allocator_dalloc(tsdn_t *tsdn, pai_t *self, edata_t *edata, 123 pai_test_allocator_dalloc_batch(tsdn_t *tsdn, pai_t *self, 166 tsdn_t *tsdn = TSDN_NULL; local 181 one_page[i] = pai_alloc(tsdn, &sec.pai, PAGE, PAGE, 185 two_page[i] = pai_alloc(tsdn, &sec.pai, 2 * PAGE, PAGE, 201 pai_dalloc(tsdn, &sec.pai, one_page[i] 241 tsdn_t *tsdn = TSDN_NULL; local 307 tsdn_t *tsdn = TSDN_NULL; local 374 tsdn_t *tsdn = TSDN_NULL; local 411 tsdn_t *tsdn = TSDN_NULL; local 449 tsdn_t *tsdn = TSDN_NULL; local 487 tsdn_t *tsdn = TSDN_NULL; local 531 tsdn_t *tsdn = TSDN_NULL; local 583 tsdn_t *tsdn = TSDN_NULL; local [all...] |
| hpa.c | 78 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 84 edata = pai_alloc(tsdn, &shard->pai, ALLOC_MAX, PAGE, false, false, 87 edata = pai_alloc(tsdn, &shard->pai, ALLOC_MAX + PAGE, PAGE, false, 159 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 191 edata_t *edata = pai_alloc(tsdn, &shard->pai, 209 pai_dalloc(tsdn, &shard->pai, to_free, 229 pai_dalloc(tsdn, &shard->pai, to_free, 232 hpa_shard_destroy(tsdn, shard); 254 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local 266 allocs[i] = pai_alloc(tsdn, &shard->pai, PAGE, PAGE 382 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local [all...] |
| /src/external/bsd/jemalloc/dist/src/ |
| hook.c | 48 hook_install(tsdn_t *tsdn, hooks_t *to_install) { 49 malloc_mutex_lock(tsdn, &hooks_mu); 52 tsd_global_slow_inc(tsdn); 54 malloc_mutex_unlock(tsdn, &hooks_mu); 73 hook_remove(tsdn_t *tsdn, void *opaque) { 81 malloc_mutex_lock(tsdn, &hooks_mu); 83 tsd_global_slow_dec(tsdn); 84 malloc_mutex_unlock(tsdn, &hooks_mu); 132 tsdn_t *tsdn = tsdn_fetch(); local 133 bool *in_hook = tsdn_in_hookp_get(tsdn); [all...] |
| ehooks.c | 22 extent_alloc_core(tsdn_t *tsdn, arena_t *arena, void *new_addr, size_t size, 31 extent_alloc_dss(tsdn, arena, new_addr, size, alignment, zero, 42 extent_alloc_dss(tsdn, arena, new_addr, size, alignment, zero, 52 ehooks_default_alloc_impl(tsdn_t *tsdn, void *new_addr, size_t size, 54 arena_t *arena = arena_get(tsdn, arena_ind, false); 59 void *ret = extent_alloc_core(tsdn, arena, new_addr, size, alignment, 182 ehooks_default_merge_impl(tsdn_t *tsdn, void *addr_a, void *addr_b) { 204 edata_t *a = emap_edata_lookup(tsdn, &arena_emap_global, 207 edata_t *b = emap_edata_lookup(tsdn, &arena_emap_global, 210 emap_assert_mapped(tsdn, &arena_emap_global, a) 225 tsdn_t *tsdn = tsdn_fetch(); local [all...] |
| prof_sys.c | 543 prof_prefix_get(tsdn_t* tsdn) { 544 malloc_mutex_assert_owner(tsdn, &prof_dump_filename_mtx); 550 prof_prefix_is_empty(tsdn_t *tsdn) { 551 malloc_mutex_lock(tsdn, &prof_dump_filename_mtx); 552 bool ret = (prof_prefix_get(tsdn)[0] == '\0'); 553 malloc_mutex_unlock(tsdn, &prof_dump_filename_mtx); 581 prof_get_default_filename(tsdn_t *tsdn, char *filename, uint64_t ind) { 582 malloc_mutex_lock(tsdn, &prof_dump_filename_mtx); 584 "%s.%d.%"FMTu64".json", prof_prefix_get(tsdn), prof_getpid(), ind); 585 malloc_mutex_unlock(tsdn, &prof_dump_filename_mtx) 658 tsdn_t *tsdn = tsd_tsdn(tsd); local [all...] |
| prof_data.c | 186 prof_gctx_create(tsdn_t *tsdn, prof_bt_t *bt) { 191 prof_gctx_t *gctx = (prof_gctx_t *)iallocztm(tsdn, size, 413 tsdn_t *tsdn; local 415 tsdn = tsdn_fetch(); 416 malloc_mutex_lock(tsdn, &tdatas_mtx); 419 malloc_mutex_unlock(tsdn, &tdatas_mtx); 670 prof_tctx_merge_tdata(tsdn_t *tsdn, prof_tctx_t *tctx, prof_tdata_t *tdata) { 671 malloc_mutex_assert_owner(tsdn, tctx->tdata->lock); 673 malloc_mutex_lock(tsdn, tctx->gctx->lock); 677 malloc_mutex_unlock(tsdn, tctx->gctx->lock) 729 tsdn_t *tsdn = (tsdn_t *)arg; local 750 tsdn_t *tsdn; member in struct:prof_dump_iter_arg_s 781 tsdn_t *tsdn = (tsdn_t *)arg; local 826 tsdn_t *tsdn; member in struct:prof_gctx_merge_iter_arg_s 893 tsdn_t *tsdn; member in struct:prof_tdata_merge_iter_arg_s 1293 tsdn_t *tsdn = (tsdn_t *)arg; local [all...] |
| /src/external/bsd/jemalloc.old/dist/src/ |
| hook.c | 48 hook_install(tsdn_t *tsdn, hooks_t *to_install) { 49 malloc_mutex_lock(tsdn, &hooks_mu); 52 tsd_global_slow_inc(tsdn); 54 malloc_mutex_unlock(tsdn, &hooks_mu); 73 hook_remove(tsdn_t *tsdn, void *opaque) { 81 malloc_mutex_lock(tsdn, &hooks_mu); 83 tsd_global_slow_dec(tsdn); 84 malloc_mutex_unlock(tsdn, &hooks_mu); 132 tsdn_t *tsdn = tsdn_fetch(); local 133 bool *in_hook = tsdn_in_hookp_get(tsdn); [all...] |
| ehooks.c | 22 extent_alloc_core(tsdn_t *tsdn, arena_t *arena, void *new_addr, size_t size, 31 extent_alloc_dss(tsdn, arena, new_addr, size, alignment, zero, 42 extent_alloc_dss(tsdn, arena, new_addr, size, alignment, zero, 52 ehooks_default_alloc_impl(tsdn_t *tsdn, void *new_addr, size_t size, 54 arena_t *arena = arena_get(tsdn, arena_ind, false); 59 void *ret = extent_alloc_core(tsdn, arena, new_addr, size, alignment, 182 ehooks_default_merge_impl(tsdn_t *tsdn, void *addr_a, void *addr_b) { 204 edata_t *a = emap_edata_lookup(tsdn, &arena_emap_global, 207 edata_t *b = emap_edata_lookup(tsdn, &arena_emap_global, 210 emap_assert_mapped(tsdn, &arena_emap_global, a) 225 tsdn_t *tsdn = tsdn_fetch(); local [all...] |
| prof_sys.c | 543 prof_prefix_get(tsdn_t* tsdn) { 544 malloc_mutex_assert_owner(tsdn, &prof_dump_filename_mtx); 550 prof_prefix_is_empty(tsdn_t *tsdn) { 551 malloc_mutex_lock(tsdn, &prof_dump_filename_mtx); 552 bool ret = (prof_prefix_get(tsdn)[0] == '\0'); 553 malloc_mutex_unlock(tsdn, &prof_dump_filename_mtx); 581 prof_get_default_filename(tsdn_t *tsdn, char *filename, uint64_t ind) { 582 malloc_mutex_lock(tsdn, &prof_dump_filename_mtx); 584 "%s.%d.%"FMTu64".json", prof_prefix_get(tsdn), prof_getpid(), ind); 585 malloc_mutex_unlock(tsdn, &prof_dump_filename_mtx) 658 tsdn_t *tsdn = tsd_tsdn(tsd); local [all...] |