Home
last modified time | relevance | path

Searched refs:realloc (Results 1 – 25 of 51) sorted by relevance

123

/bionic/linker/
Dlinker_memory.cpp79 void* realloc(void* p, size_t byte_count) { in realloc() function
80 return get_allocator().realloc(p, byte_count); in realloc()
89 return get_allocator().realloc(p, byte_count); in reallocarray()
/bionic/tests/
Dmalloc_test.cpp171 ptr = (char*)realloc(ptr, 200); in TEST()
180 ptr = (char*)realloc(ptr, 300); in TEST()
188 ptr = (char*)realloc(ptr, 250); in TEST()
205 ptr = (char *)realloc(ptr, 200); in TEST()
221 ptr = (char *)realloc(ptr, 100); in TEST()
237 ptr = (char *)realloc(ptr, 100); in TEST()
244 ptr = (char*)realloc(ptr, 50); in TEST()
251 ptr = (char*)realloc(ptr, 150); in TEST()
259 ptr = (char*)realloc(ptr, 425); in TEST()
274 ptr = (char *)realloc(ptr, 200); in TEST()
[all …]
Dbionic_allocator_test.cpp92 uint32_t* reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 1024)); in TEST()
103 reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 62)); in TEST()
107 reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 4000)); in TEST()
119 reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 64000)); in TEST()
127 ASSERT_EQ(nullptr, allocator.realloc(reallocated_ptr, 0)); in TEST()
/bionic/libc/bionic/
Dmalloc_common.cpp183 extern "C" __attribute__((__noinline__)) void* realloc(void* old_mem, size_t bytes) { in realloc() function
187 return MaybeTagPointer(dispatch_table->realloc(old_mem, bytes)); in realloc()
189 void* result = Malloc(realloc)(old_mem, bytes); in realloc()
204 return realloc(old_mem, new_size); in reallocarray()
354 Malloc(realloc),
Dscandir.cpp55 reinterpret_cast<dirent**>(realloc(names_, new_capacity * sizeof(dirent*))); in Add()
Dmalloc_limit.cpp209 new_ptr = dispatch_table->realloc(old_mem, bytes); in LimitRealloc()
211 new_ptr = Malloc(realloc)(old_mem, bytes); in LimitRealloc()
Dgwp_asan_wrappers.cpp154 return prev_dispatch->realloc(old_mem, bytes); in gwp_asan_realloc()
Dbionic_allocator.cpp343 void* BionicAllocator::realloc(void* ptr, size_t size) { in realloc() function in BionicAllocator
Dmalloc_common_dynamic.cpp174 if (!InitMallocFunction<MallocRealloc>(impl_handler, &table->realloc, prefix, "realloc")) { in InitMallocFunctions()
/bionic/benchmarks/
Dmalloc_sql_benchmark.cpp78 ptrs[entries[i].idx] = realloc(nullptr, entries[i].size); in BenchmarkMalloc()
80 ptrs[entries[i].idx] = realloc(ptrs[entries[i].arg2 - 1], entries[i].size); in BenchmarkMalloc()
/bionic/libc/upstream-netbsd/lib/libc/stdlib/
Dreallocarr.c85 nptr = realloc(optr, number * size); in __weak_alias()
/bionic/libc/private/
Dbionic_malloc_dispatch.h69 MallocRealloc realloc; member
Dbionic_allocator.h111 void* realloc(void* ptr, size_t size);
/bionic/libc/malloc_hooks/
Dmalloc_hooks.cpp86 return g_dispatch->realloc(pointer, bytes); in default_realloc_hook()
153 return g_dispatch->realloc(pointer, bytes); in hooks_realloc()
DREADME.md17 * `realloc`
38 When realloc is called and \_\_realloc\_hook has been set, then the hook
/bionic/libc/include/
Dmalloc.h61 void* realloc(void* __ptr, size_t __byte_count) __BIONIC_ALLOC_SIZE(2) __wur;
/bionic/libc/dns/net/
Dgetservent.c68 p2 = realloc( (char*)rs->servent.s_aliases, total ); in getservent_r()
/bionic/libc/malloc_debug/
DREADME.md19 * `realloc`
32 NOTE: There is a small behavioral change beginning in P for realloc.
33 Before, a realloc from one size to a smaller size would not update the
34 backtrace related to the allocation. Starting in P, every single realloc
170 filled with the value 0xeb. When doing a realloc to a larger size, the bytes
328 new\_pointer = realloc(old\_pointer, size)
330 **THREAD\_ID**: realloc new\_pointer old\_pointer size
334 186: realloc 0xb609f080 0xb603e9a0 12
380 free/malloc\_usable\_size/realloc calls are passed valid pointers.
393 malloc\_usable\_size, realloc.
[all …]
DREADME_marshmallow_and_earlier.md25 * `realloc`
/bionic/tests/headers/posix/
Dstdlib_h.c118 FUNCTION(realloc, void* (*f)(void*, size_t)); in stdlib_h()
/bionic/benchmarks/linker_relocation/gen/
Dliblinker_reloc_bench_160.S122 CALL(realloc)
Dliblinker_reloc_bench_008.S332 CALL(realloc)
Dliblinker_reloc_bench_144.S236 CALL(realloc)
/bionic/libc/stdio/
Dvfscanf.cpp462 reinterpret_cast<wchar_t*>(realloc(allocation, sizeof(wchar_t) * capacity)); in __svfscanf()
511 char* new_allocation = reinterpret_cast<char*>(realloc(allocation, capacity)); in __svfscanf()
/bionic/libc/malloc_hooks/tests/
Dmalloc_hooks_tests.cpp267 ptr = realloc(ptr, 2048); in TEST_F()

123