Home
last modified time | relevance | path

Searched refs:ptrs (Results 1 – 5 of 5) sorted by relevance

/third_party/ulib/jemalloc/test/unit/
A Darena_reset.c109 (*ptrs)[i] = mallocx(sz, flags); in do_arena_reset_pre()
110 assert_ptr_not_null((*ptrs)[i], in do_arena_reset_pre()
116 assert_ptr_not_null((*ptrs)[i], in do_arena_reset_pre()
143 free(ptrs); in do_arena_reset_post()
175 void **ptrs; in TEST_BEGIN() local
181 do_arena_reset_post(ptrs, nptrs); in TEST_BEGIN()
219 void **ptrs; in TEST_BEGIN() local
243 do_arena_reset_post(ptrs, nptrs); in TEST_BEGIN()
251 do_arena_reset_post(ptrs, nptrs); in TEST_BEGIN()
296 void **ptrs; in TEST_BEGIN() local
[all …]
A Dpack.c101 VARIABLE_ARRAY(void *, ptrs, nregs); in TEST_BEGIN()
113 ptrs[(i * nregs_per_run) + j] = p; in TEST_BEGIN()
127 void *p = ptrs[(i * nregs_per_run) + j]; in TEST_BEGIN()
150 assert_ptr_eq(p, ptrs[(i * nregs_per_run) + j], in TEST_BEGIN()
A Dprof_reset.c244 void *ptrs[NITER]; in TEST_BEGIN() local
262 p = ptrs[i] = mallocx(1, 0); in TEST_BEGIN()
281 dallocx(ptrs[i], 0); in TEST_BEGIN()
/third_party/ulib/jemalloc/msvc/projects/vc2015/test_threads/
A Dtest_threads.cpp44 uint8_t* ptrs[numAllocsMax]; in test_threads() local
54 ptrs[j] = (uint8_t*)je_malloc(sz); in test_threads()
55 if (!ptrs[j]) { in test_threads()
60 ptrs[j][k] = tid + k; in test_threads()
64 if (ptrs[j][k] != (uint8_t)(tid + k)) { in test_threads()
65 …error in thread %d, iter %d, alloc %d @ %d : %02X!=%02X\n", tid, i, j, k, ptrs[j][k], (uint8_t)(ti… in test_threads()
68 je_free(ptrs[j]); in test_threads()
/third_party/ulib/jemalloc/test/integration/
A Dmallocx.c88 void *ptrs[3]; in TEST_BEGIN() local
97 for (i = 0; i < sizeof(ptrs) / sizeof(void *); i++) { in TEST_BEGIN()
98 ptrs[i] = mallocx(largemax, 0); in TEST_BEGIN()
99 if (ptrs[i] == NULL) in TEST_BEGIN()
105 for (i = 0; i < sizeof(ptrs) / sizeof(void *); i++) { in TEST_BEGIN()
106 if (ptrs[i] != NULL) in TEST_BEGIN()
107 dallocx(ptrs[i], 0); in TEST_BEGIN()

Completed in 9 milliseconds