Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 67) sorted by relevance

123

/third_party/ulib/jemalloc/src/
A Djemalloc_cpp.cpp38 void *ptr = je_malloc(size); in newImpl() local
39 if (likely(ptr != nullptr)) in newImpl()
40 return (ptr); in newImpl()
42 while (ptr == nullptr) { in newImpl()
61 ptr = je_malloc(size); in newImpl()
66 return (ptr); in newImpl()
96 je_free(ptr); in operator delete()
102 je_free(ptr); in operator delete[]()
108 je_free(ptr); in operator delete()
113 je_free(ptr); in operator delete[]()
[all …]
A Dzone.c139 return (ivsalloc(tsdn_fetch(), ptr)); in zone_size()
165 zone_free(malloc_zone_t *zone, void *ptr) in zone_free() argument
167 if (ivsalloc(tsdn_fetch(), ptr) != 0) { in zone_free()
168 je_free(ptr); in zone_free()
172 free(ptr); in zone_free()
178 if (ivsalloc(tsdn_fetch(), ptr) != 0) in zone_realloc()
179 return (je_realloc(ptr, size)); in zone_realloc()
181 return (realloc(ptr, size)); in zone_realloc()
199 alloc_size = ivsalloc(tsdn_fetch(), ptr); in zone_free_definite_size()
202 je_free(ptr); in zone_free_definite_size()
[all …]
A Djemalloc.c325 a0dalloc(void *ptr) in a0dalloc() argument
327 a0idalloc(iealloc(NULL, ptr), ptr, true); in a0dalloc()
365 a0idalloc(iealloc(NULL, ptr), ptr, false); in bootstrap_free()
2036 je_free(void *ptr) in je_free() argument
2038 UTRACE(ptr, 0, 0); in je_free()
2497 UTRACE(ptr, size, ptr); in je_xallocx()
2517 usize = isalloc(tsdn, iealloc(tsdn, ptr), ptr); in JEMALLOC_ATTR()
2542 UTRACE(ptr, 0, 0); in je_dallocx()
2589 UTRACE(ptr, 0, 0); in je_sdallocx()
2696 ret = (ptr == NULL) ? 0 : isalloc(tsdn, iealloc(tsdn, ptr), in je_malloc_usable_size()
[all …]
A Darena.c827 void *ptr = extent_base_get(extent); in arena_reset() local
835 prof_free(tsd, extent, ptr, usize); in arena_reset()
1116 void *ptr; in arena_tcache_fill_small() local
1123 if (ptr == NULL) { in arena_tcache_fill_small()
1140 *(tbin->avail - nfill + i) = ptr; in arena_tcache_fill_small()
1273 assert(ptr != NULL); in arena_prof_promote()
1299 assert(ptr != NULL); in arena_prof_demote()
1391 void *ptr, bool junked) in arena_dalloc_bin_locked_impl() argument
1418 void *ptr) in arena_dalloc_bin_junked_locked() argument
1504 return (ptr); in arena_ralloc()
[all …]
A Dtcache.c27 tcache_salloc(tsdn_t *tsdn, const void *ptr) in tcache_salloc() argument
29 return (arena_salloc(tsdn, iealloc(tsdn, ptr), ptr)); in tcache_salloc()
92 void *ptr; in tcache_bin_flush_small() local
124 ptr = *(tbin->avail - 1 - i); in tcache_bin_flush_small()
125 assert(ptr != NULL); in tcache_bin_flush_small()
127 extent = iealloc(tsd_tsdn(tsd), ptr); in tcache_bin_flush_small()
130 bin_arena, extent, ptr); in tcache_bin_flush_small()
170 void *ptr; in tcache_bin_flush_large() local
205 ptr = *(tbin->avail - 1 - i); in tcache_bin_flush_large()
206 assert(ptr != NULL); in tcache_bin_flush_large()
[all …]
/third_party/ulib/jemalloc/include/jemalloc/internal/
A Dprof_inlines.h9 const void *ptr);
80 assert(ptr != NULL); in prof_tctx_get()
82 return (arena_prof_tctx_get(tsdn, extent, ptr)); in prof_tctx_get()
90 assert(ptr != NULL); in prof_tctx_set()
100 assert(ptr != NULL); in prof_tctx_reset()
102 arena_prof_tctx_reset(tsdn, extent, ptr, tctx); in prof_tctx_reset()
161 assert(ptr != NULL); in prof_malloc()
162 assert(usize == isalloc(tsdn, extent, ptr)); in prof_malloc()
167 prof_tctx_set(tsdn, extent, ptr, usize, in prof_malloc()
182 if (prof_active && !updated && ptr != NULL) { in prof_realloc()
[all …]
A Darena_inlines_b.h7 const void *ptr);
37 assert(ptr != NULL); in arena_prof_tctx_get()
49 assert(ptr != NULL); in arena_prof_tctx_set()
60 assert(ptr != NULL); in arena_prof_tctx_reset()
114 arena_aalloc(tsdn_t *tsdn, const void *ptr) in arena_aalloc() argument
125 assert(ptr != NULL); in arena_salloc()
140 assert(ptr != NULL); in arena_dalloc()
150 extent, ptr); in arena_dalloc()
161 ptr, usize, slow_path); in arena_dalloc()
173 assert(ptr != NULL); in arena_sdalloc()
[all …]
A Djemalloc_internal.h474 void a0dalloc(void *ptr);
477 void bootstrap_free(void *ptr);
965 assert(ptr != NULL); in iaalloc()
967 return (arena_aalloc(tsdn, ptr)); in iaalloc()
980 assert(ptr != NULL); in isalloc()
1066 return (isalloc(tsdn, extent, ptr)); in ivsalloc()
1073 assert(ptr != NULL); in idalloctm()
1079 ptr)); in idalloctm()
1127 memcpy(p, ptr, copysize); in iralloct_realign()
1136 assert(ptr != NULL); in iralloct()
[all …]
A Darena_externs.h28 size_t arena_slab_regind(extent_t *slab, szind_t binind, const void *ptr);
46 void arena_alloc_junk_small(void *ptr, const arena_bin_info_t *bin_info,
52 void arena_dalloc_junk_small(void *ptr, const arena_bin_info_t *bin_info);
58 void arena_prof_promote(tsdn_t *tsdn, extent_t *extent, const void *ptr,
60 void arena_dalloc_promoted(tsdn_t *tsdn, extent_t *extent, void *ptr,
63 extent_t *extent, void *ptr);
65 void *ptr);
66 bool arena_ralloc_no_move(tsdn_t *tsdn, extent_t *extent, void *ptr,
68 void *arena_ralloc(tsdn_t *tsdn, arena_t *arena, extent_t *extent, void *ptr,
A Dtcache_inlines.h15 void tcache_dalloc_small(tsd_t *tsd, tcache_t *tcache, void *ptr,
17 void tcache_dalloc_large(tsd_t *tsd, tcache_t *tcache, void *ptr,
240 tcache_dalloc_small(tsd_t *tsd, tcache_t *tcache, void *ptr, szind_t binind, in tcache_dalloc_small() argument
246 assert(tcache_salloc(tsd_tsdn(tsd), ptr) <= SMALL_MAXCLASS); in tcache_dalloc_small()
249 arena_dalloc_junk_small(ptr, &arena_bin_info[binind]); in tcache_dalloc_small()
259 *(tbin->avail - tbin->ncached) = ptr; in tcache_dalloc_small()
265 tcache_dalloc_large(tsd_t *tsd, tcache_t *tcache, void *ptr, size_t size, in tcache_dalloc_large() argument
272 assert(tcache_salloc(tsd_tsdn(tsd), ptr) > SMALL_MAXCLASS); in tcache_dalloc_large()
273 assert(tcache_salloc(tsd_tsdn(tsd), ptr) <= tcache_maxclass); in tcache_dalloc_large()
278 large_dalloc_junk(ptr, size); in tcache_dalloc_large()
[all …]
A Djemalloc_internal.h.in472 void a0dalloc(void *ptr);
475 void bootstrap_free(void *ptr);
963 assert(ptr != NULL);
965 return (arena_aalloc(tsdn, ptr));
971 * void *ptr = [...]
978 assert(ptr != NULL);
1071 assert(ptr != NULL);
1077 ptr));
1125 memcpy(p, ptr, copysize);
1134 assert(ptr != NULL);
[all …]
/third_party/ulib/uboringssl/crypto/
A Dmem.c84 void sdallocx(void *ptr, size_t size, int flags);
90 void sdallocx(void *ptr, size_t size, int flags) { in sdallocx() argument
91 free(ptr); in sdallocx()
96 if (ptr == NULL) { in OPENSSL_malloc()
100 *(size_t *)ptr = size; in OPENSSL_malloc()
112 size_t size = *(size_t *)ptr; in OPENSSL_free()
123 size_t old_size = *(size_t *)ptr; in OPENSSL_realloc()
141 void OPENSSL_cleanse(void *ptr, size_t len) { in OPENSSL_cleanse() argument
143 SecureZeroMemory(ptr, len); in OPENSSL_cleanse()
145 OPENSSL_memset(ptr, 0, len); in OPENSSL_cleanse()
[all …]
/third_party/ulib/musl/third_party/tre/
A Dtre-mem.c80 void* ptr; in tre_mem_alloc_impl() local
95 mem->ptr = provided_block; in tre_mem_alloc_impl()
120 mem->ptr = l->data; in tre_mem_alloc_impl()
126 size += ALIGN(mem->ptr + size, long); in tre_mem_alloc_impl()
129 ptr = mem->ptr; in tre_mem_alloc_impl()
130 mem->ptr += size; in tre_mem_alloc_impl()
135 memset(ptr, 0, size); in tre_mem_alloc_impl()
137 return ptr; in tre_mem_alloc_impl()
/third_party/ulib/jemalloc/test/unit/
A Djunk.c25 arena_dalloc_junk_small_intercept(void *ptr, const arena_bin_info_t *bin_info) in arena_dalloc_junk_small_intercept() argument
29 arena_dalloc_junk_small_orig(ptr, bin_info); in arena_dalloc_junk_small_intercept()
31 assert_u_eq(((uint8_t *)ptr)[i], JEMALLOC_FREE_JUNK, in arena_dalloc_junk_small_intercept()
35 if (ptr == watch_for_junking) in arena_dalloc_junk_small_intercept()
40 large_dalloc_junk_intercept(void *ptr, size_t usize) in large_dalloc_junk_intercept() argument
44 large_dalloc_junk_orig(ptr, usize); in large_dalloc_junk_intercept()
46 assert_u_eq(((uint8_t *)ptr)[i], JEMALLOC_FREE_JUNK, in large_dalloc_junk_intercept()
50 if (ptr == watch_for_junking) in large_dalloc_junk_intercept()
55 large_dalloc_maybe_junk_intercept(void *ptr, size_t usize) in large_dalloc_maybe_junk_intercept() argument
57 large_dalloc_maybe_junk_orig(ptr, usize); in large_dalloc_maybe_junk_intercept()
[all …]
/third_party/ulib/jemalloc/include/jemalloc/
A Djemalloc_protos.h23 void JEMALLOC_NOTHROW *je_realloc(void *ptr, size_t size)
25 JEMALLOC_EXPORT void JEMALLOC_NOTHROW je_free(void *ptr)
32 void JEMALLOC_NOTHROW *je_rallocx(void *ptr, size_t size,
34 JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW je_xallocx(void *ptr, size_t size,
36 JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW je_sallocx(const void *ptr,
38 JEMALLOC_EXPORT void JEMALLOC_NOTHROW je_dallocx(void *ptr, int flags);
39 JEMALLOC_EXPORT void JEMALLOC_NOTHROW je_sdallocx(void *ptr, size_t size,
54 JEMALLOC_USABLE_SIZE_CONST void *ptr) JEMALLOC_CXX_THROW;
A Djemalloc_protos_jet.h23 void JEMALLOC_NOTHROW *jet_realloc(void *ptr, size_t size)
25 JEMALLOC_EXPORT void JEMALLOC_NOTHROW jet_free(void *ptr)
32 void JEMALLOC_NOTHROW *jet_rallocx(void *ptr, size_t size,
34 JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW jet_xallocx(void *ptr, size_t size,
36 JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW jet_sallocx(const void *ptr,
38 JEMALLOC_EXPORT void JEMALLOC_NOTHROW jet_dallocx(void *ptr, int flags);
39 JEMALLOC_EXPORT void JEMALLOC_NOTHROW jet_sdallocx(void *ptr, size_t size,
54 JEMALLOC_USABLE_SIZE_CONST void *ptr) JEMALLOC_CXX_THROW;
A Djemalloc_protos.h.in23 void JEMALLOC_NOTHROW *@je_@realloc(void *ptr, size_t size)
25 JEMALLOC_EXPORT void JEMALLOC_NOTHROW @je_@free(void *ptr)
32 void JEMALLOC_NOTHROW *@je_@rallocx(void *ptr, size_t size,
34 JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW @je_@xallocx(void *ptr, size_t size,
36 JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW @je_@sallocx(const void *ptr,
38 JEMALLOC_EXPORT void JEMALLOC_NOTHROW @je_@dallocx(void *ptr, int flags);
39 JEMALLOC_EXPORT void JEMALLOC_NOTHROW @je_@sdallocx(void *ptr, size_t size,
54 JEMALLOC_USABLE_SIZE_CONST void *ptr) JEMALLOC_CXX_THROW;
A Djemalloc.h230 void JEMALLOC_NOTHROW *je_realloc(void *ptr, size_t size)
232 JEMALLOC_EXPORT void JEMALLOC_NOTHROW je_free(void *ptr)
239 void JEMALLOC_NOTHROW *je_rallocx(void *ptr, size_t size,
241 JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW je_xallocx(void *ptr, size_t size,
243 JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW je_sallocx(const void *ptr,
245 JEMALLOC_EXPORT void JEMALLOC_NOTHROW je_dallocx(void *ptr, int flags);
246 JEMALLOC_EXPORT void JEMALLOC_NOTHROW je_sdallocx(void *ptr, size_t size,
261 JEMALLOC_USABLE_SIZE_CONST void *ptr) JEMALLOC_CXX_THROW;
/third_party/lib/acpica/source/include/acpica/
A Dacmacros.h53 #define ACPI_CAST8(ptr) ACPI_CAST_PTR (UINT8, (ptr)) argument
54 #define ACPI_CAST16(ptr) ACPI_CAST_PTR (UINT16, (ptr)) argument
55 #define ACPI_CAST32(ptr) ACPI_CAST_PTR (UINT32, (ptr)) argument
56 #define ACPI_CAST64(ptr) ACPI_CAST_PTR (UINT64, (ptr)) argument
57 #define ACPI_GET8(ptr) (*ACPI_CAST8 (ptr)) argument
58 #define ACPI_GET16(ptr) (*ACPI_CAST16 (ptr)) argument
59 #define ACPI_GET32(ptr) (*ACPI_CAST32 (ptr)) argument
60 #define ACPI_GET64(ptr) (*ACPI_CAST64 (ptr)) argument
61 #define ACPI_SET8(ptr, val) (*ACPI_CAST8 (ptr) = (UINT8) (val)) argument
62 #define ACPI_SET16(ptr, val) (*ACPI_CAST16 (ptr) = (UINT16) (val)) argument
[all …]
/third_party/ulib/uboringssl/include/openssl/
A Dmem.h83 OPENSSL_EXPORT void OPENSSL_free(void *ptr);
88 OPENSSL_EXPORT void *OPENSSL_realloc(void *ptr, size_t new_size);
92 OPENSSL_EXPORT void OPENSSL_cleanse(void *ptr, size_t len);
102 OPENSSL_EXPORT uint32_t OPENSSL_hash32(const void *ptr, size_t len);
/third_party/ulib/musl/src/mman/
A Dmmap.c60 uintptr_t ptr = 0; in __mmap() local
68 status = _mmap_file(offset, len, zx_options, flags, fd, fd_off, &ptr); in __mmap()
72 return (void*) ptr; in __mmap()
75 status = _zx_vmar_map(_zx_vmar_root_self(), zx_options, offset, vmo, fd_off, len, &ptr); in __mmap()
82 return (void*)ptr; in __mmap()
A Dmunmap.c9 uintptr_t ptr = (uintptr_t)start; in __munmap() local
10 zx_status_t status = _zx_vmar_unmap(_zx_vmar_root_self(), ptr, len); in __munmap()
A Dmprotect.c10 uintptr_t ptr = (uintptr_t)addr; in __mprotect() local
15 zx_status_t status = _zx_vmar_protect(_zx_vmar_root_self(), zx_prot, ptr, len); in __mprotect()
/third_party/ulib/musl/src/network/
A Dgetnameinfo.c59 char ptr[PTR_MAX]; in getnameinfo() local
70 mkptr4(ptr, a); in getnameinfo()
78 mkptr6(ptr, a); in getnameinfo()
80 mkptr4(ptr, a + 12); in getnameinfo()
91 int qlen = __res_mkquery(0, ptr, 1, RR_PTR, 0, 0, 0, query, sizeof query); in getnameinfo()
/third_party/ulib/musl/src/passwd/
A Dgetgr_a.c47 char* ptr; in __getgr_a() local
129 for (ptr = mem[0][0], i = 0; ptr != mem[0][0] + grlist_len; ptr++) in __getgr_a()
130 if (!*ptr) in __getgr_a()
131 mem[0][++i] = ptr + 1; in __getgr_a()

Completed in 55 milliseconds

123