HomeSort by: relevance | last modified time | path
    Searched defs:tsdn (Results 1 - 25 of 41) sorted by relevancy

1 2

  /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...]
  /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...]
  /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);
130 tsdn_t *tsdn = tsdn_fetch(); local
131 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,
32 tsdn, arena, new_addr, size, alignment, zero, commit))
44 tsdn, arena, new_addr, size, alignment, zero, commit))
54 ehooks_default_alloc_impl(tsdn_t *tsdn, void *new_addr, size_t size,
56 arena_t *arena = arena_get(tsdn, arena_ind, false);
63 tsdn, arena, new_addr, size, alignment, zero, commit, dss);
185 ehooks_default_merge_impl(tsdn_t *tsdn, void *addr_a, void *addr_b) {
208 tsdn, &arena_emap_global, addr_a);
211 tsdn, &arena_emap_global, addr_b);
213 emap_assert_mapped(tsdn, &arena_emap_global, a)
228 tsdn_t *tsdn = tsdn_fetch(); local
    [all...]
  /src/external/bsd/jemalloc/dist/test/unit/
base.c 29 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
30 base = base_new(tsdn, 0, (extent_hooks_t *)&ehooks_default_extent_hooks,
34 base_stats_get(tsdn, base, &allocated0, &edata_allocated,
45 base_alloc(tsdn, base, 42, 1), "Unexpected base_alloc() failure");
48 base_stats_get(tsdn, base, &allocated1, &edata_allocated,
54 base_delete(tsdn, base);
73 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
74 base = base_new(tsdn, 0, &hooks, /* metadata_use_hooks */ true);
78 base_stats_get(tsdn, base, &allocated0, &edata_allocated,
89 base_alloc(tsdn, base, 42, 1), "Unexpected base_alloc() failure")
118 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
228 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
241 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) {
65 buf_writer_terminate(tsdn, buf_writer);
70 tsdn_t *tsdn = tsdn_fetch(); local
71 assert_false(buf_writer_init(tsdn, &buf_writer, test_write_cb, &arg,
74 test_buf_writer_body(tsdn, &buf_writer);
80 tsdn_t *tsdn = tsdn_fetch(); local
81 assert_false(buf_writer_init(tsdn, &buf_writer, test_write_cb, &arg,
84 test_buf_writer_body(tsdn, &buf_writer);
90 tsdn_t *tsdn = tsdn_fetch(); local
91 assert_true(buf_writer_init(tsdn, &buf_writer, test_write_cb, &arg
178 tsdn_t *tsdn = tsdn_fetch(); local
188 tsdn_t *tsdn = tsdn_fetch(); local
    [all...]
bin.c 309 tsdn_t *tsdn = tsdn_fetch(); local
318 malloc_mutex_lock(tsdn, &bin.lock);
319 bin_refill_slabcur_with_fresh_slab(tsdn, &bin, binind, &fresh);
330 malloc_mutex_unlock(tsdn, &bin.lock);
340 tsdn_t *tsdn = tsdn_fetch(); local
349 malloc_mutex_lock(tsdn, &bin.lock);
352 empty = bin_refill_slabcur_no_fresh_slab(tsdn, true, &bin);
359 empty = bin_refill_slabcur_no_fresh_slab(tsdn, true, &bin);
365 malloc_mutex_unlock(tsdn, &bin.lock);
374 tsdn_t *tsdn = tsdn_fetch() local
413 tsdn_t *tsdn = tsdn_fetch(); local
444 tsdn_t *tsdn = tsdn_fetch(); local
478 tsdn_t *tsdn = tsdn_fetch(); local
558 tsdn_t *tsdn = tsdn_fetch(); local
592 tsdn_t *tsdn = tsdn_fetch(); local
622 tsdn_t *tsdn = tsdn_fetch(); local
699 tsdn_t *tsdn = tsdn_fetch(); local
758 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);
hpa_vectorized_madvise_large_batch.c 71 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
72 err = hpa_shard_init(tsdn, &test_data->shard, &test_data->central,
168 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
173 edatas[i] = pai_alloc(tsdn, &shard->pai, PAGE, PAGE, false,
183 pai_dalloc(tsdn, &shard->pai, edatas[i],
188 hpa_shard_do_deferred_work(tsdn, shard);
230 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
235 edatas[i] = pai_alloc(tsdn, &shard->pai, PAGE, PAGE, false,
242 tsdn, &shard->pai, edatas[i], &deferred_work_generated);
245 hpa_shard_do_deferred_work(tsdn, shard)
    [all...]
rtree.c 11 tsdn_t *tsdn; local
13 tsdn = tsdn_fetch();
15 base_t *base = base_new(tsdn, 0, &ehooks_default_extent_hooks,
26 rtree_read_independent(tsdn, rtree, &rtree_ctx, PAGE, &contents),
29 base_delete(tsdn, base);
55 tsdn_t *tsdn = tsdn_fetch(); local
57 base_t *base = base_new(tsdn, 0, &ehooks_default_extent_hooks,
73 expect_false(rtree_write(tsdn, rtree, &rtree_ctx, PAGE, contents_a),
75 expect_false(rtree_write(tsdn, rtree, &rtree_ctx, PAGE, contents_a),
78 tsdn, rtree, &rtree_ctx, PAGE)
111 tsdn_t *tsdn = tsdn_fetch(); local
164 tsdn_t *tsdn = tsdn_fetch(); local
268 tsdn_t *tsdn = tsdn_fetch(); local
    [all...]
san.c 8 verify_extent_guarded(tsdn_t *tsdn, void *ptr) {
10 extent_is_guarded(tsdn, ptr), "All extents should be guarded.");
24 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
36 verify_extent_guarded(tsdn, ptr);
73 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
81 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...]
san_bump.c 54 tsdn_t *tsdn = tsdn_fetch(); local
62 arena_t *arena = arena_get(tsdn, arena_ind, false);
68 tsdn, &sba, pac, pac_ehooks_get(pac), alloc_size, /* zero */ false);
89 tsdn, &sba, pac, pac_ehooks_get(pac), alloc_size2, /* zero */ true);
119 tsdn_t *tsdn = tsdn_fetch(); local
128 arena_t *arena = arena_get(tsdn, arena_ind, false);
132 edata_t *edata = san_bump_alloc(tsdn, &sba, pac, pac_ehooks_get(pac),
141 edata_t *failed = san_bump_alloc(tsdn, &sba, pac, pac_ehooks_get(pac),
147 edata_t *reused = san_bump_alloc(tsdn, &sba, pac, pac_ehooks_get(pac),
161 tsdn_t *tsdn = tsdn_fetch() local
    [all...]
arena_reset.c 62 vsalloc(tsdn_t *tsdn, const void *ptr) {
65 tsdn, &arena_emap_global, ptr, &full_alloc_ctx);
101 tsdn_t *tsdn; local
125 tsdn = tsdn_fetch();
129 expect_zu_gt(ivsalloc(tsdn, (*ptrs)[i]), 0,
136 tsdn_t *tsdn; local
139 tsdn = tsdn_fetch();
143 tsdn, &background_thread_info_get(arena_ind)->mtx);
147 expect_zu_eq(vsalloc(tsdn, ptrs[i]), 0,
152 tsdn, &background_thread_info_get(arena_ind)->mtx)
    [all...]
hpa_sec_integration.c 69 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
70 err = hpa_shard_init(tsdn, &test_data->shard, &test_data->central,
168 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
171 edata_t *edata1 = pai_alloc(tsdn, &shard->pai, PAGE, PAGE, false, false,
176 hpa_shard_stats_merge(tsdn, shard, &hpa_stats);
185 edatas[i] = pai_alloc(tsdn, &shard->pai, PAGE, PAGE, false,
190 hpa_shard_stats_merge(tsdn, shard, &hpa_stats);
196 tsdn, &shard->pai, edatas[i], &deferred_work_generated);
199 hpa_shard_stats_merge(tsdn, shard, &hpa_stats);
206 tsdn, &shard->pai, edatas[NALLOCS - 1], &deferred_work_generated)
    [all...]
hpa_thp_always.c 70 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
71 err = hpa_shard_init(tsdn, &test_data->shard, &test_data->central,
175 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
180 edatas[i] = pai_alloc(tsdn, &shard->pai, PAGE, PAGE, false,
190 hpa_shard_do_deferred_work(tsdn, shard);
hpa_vectorized_madvise.c 71 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
72 err = hpa_shard_init(tsdn, &test_data->shard, &test_data->central,
175 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
177 edata_t *edata = pai_alloc(tsdn, &shard->pai, PAGE, PAGE, false, false,
180 pai_dalloc(tsdn, &shard->pai, edata, &deferred_work_generated);
181 hpa_shard_do_deferred_work(tsdn, shard);
216 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
221 edatas[i] = pai_alloc(tsdn, &shard->pai, PAGE, PAGE, false,
231 pai_dalloc(tsdn, &shard->pai, edatas[i],
236 hpa_shard_do_deferred_work(tsdn, shard)
    [all...]
sec.c 16 test_data_init(tsdn_t *tsdn, test_data_t *tdata, const sec_opts_t *opts) {
20 bool err = sec_init(tsdn, &tdata->sec, tdata->base, opts);
29 destroy_test_data(tsdn_t *tsdn, test_data_t *tdata) {
31 base_delete(tsdn, tdata->base);
41 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
42 test_data_init(tsdn, &tdata, &opts);
44 edata_t *edata = sec_alloc(tsdn, &tdata.sec, PAGE);
46 destroy_test_data(tsdn, &tdata);
57 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
58 test_data_init(tsdn, &tdata, &opts)
74 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
119 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
172 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
230 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
255 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
300 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
377 tsdn_t *tsdn = tsd_tsdn(tsd); local
425 tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); local
    [all...]

Completed in 28 milliseconds

1 2