Home
last modified time | relevance | path

Searched full:malloc (Results 1 – 25 of 39) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/mem/
Dnative_area_allocator.cpp34 // NOLINTNEXTLINE(cppcoreguidelines-no-malloc) in AllocateArea()
35 void *mem = malloc(capacity); in AllocateArea()
37 LOG_ECMA_MEM(FATAL) << "malloc failed, current alloc size = " << capacity in AllocateArea()
71 // NOLINTNEXTLINE(cppcoreguidelines-no-malloc) in FreeArea()
87 // NOLINTNEXTLINE(cppcoreguidelines-no-malloc) in Free()
97 // NOLINTNEXTLINE(cppcoreguidelines-no-malloc) in AllocateBuffer()
98 void *ptr = malloc(size); in AllocateBuffer()
100 LOG_ECMA_MEM(FATAL) << "malloc failed, current alloc size = " << size in AllocateBuffer()
128 // NOLINTNEXTLINE(cppcoreguidelines-no-malloc) in FreeBuffer()
Dnative_area_allocator.h111 // NOLINTNEXTLINE(cppcoreguidelines-no-malloc) in Allocate()
112 void *ptr = malloc(size); in Allocate()
114 LOG_ECMA_MEM(FATAL) << "malloc failed"; in Allocate()
128 // NOLINTNEXTLINE(cppcoreguidelines-no-malloc) in AllocateSpace()
129 void *mem = malloc(capacity); in AllocateSpace()
131 LOG_ECMA_MEM(FATAL) << "malloc failed"; in AllocateSpace()
145 // NOLINTNEXTLINE(cppcoreguidelines-no-malloc) in FreeSpace()
Dcaddress_allocator.h107 // NOLINTNEXTLINE(cppcoreguidelines-no-malloc) in Allocate()
108 void *ptr = malloc(size); in Allocate()
110 LOG_ECMA_MEM(FATAL) << "malloc failed"; in Allocate()
157 // NOLINTNEXTLINE(cppcoreguidelines-no-malloc) in Free()
/arkcompiler/ets_runtime/ecmascript/compiler/tests/
Dsatepoint_GC_0.ll16 %tmp1 = call i8 addrspace(0)* @malloc(i64 8)
17 %tmp2 = call i8 addrspace(0)* @malloc(i64 8)
18 %tmp3 = call i8 addrspace(0)* @malloc(i64 8)
19 %tmp4 = call i8 addrspace(0)* @malloc(i64 8)
20 %tmp5 = call i8 addrspace(0)* @malloc(i64 8)
21 %tmp6 = call i8 addrspace(0)* @malloc(i64 8)
22 %tmp7 = call i8 addrspace(0)* @malloc(i64 8)
23 %tmp8 = call i8 addrspace(0)* @malloc(i64 8)
94 declare noalias i8* @malloc(i64)
/arkcompiler/ets_runtime/ecmascript/shared_mm/
Dshared_mm.cpp85 // NOLINTNEXTLINE(cppcoreguidelines-no-malloc) in AllocateBuffer()
86 void *ptr = malloc(size); in AllocateBuffer()
88 LOG_ECMA_MEM(FATAL) << "malloc failed"; in AllocateBuffer()
105 // NOLINTNEXTLINE(cppcoreguidelines-no-malloc) in FreeBuffer()
/arkcompiler/runtime_core/verification/verifier/
Doptions.yaml110 - malloc
113 …Default means using malloc for Release, and panda allocators for Debug builds. If we use malloc, w…
/arkcompiler/runtime_core/platforms/unix/libpandabase/
Dmem.cpp28 #include <malloc.h>
125 // NOLINTNEXTLINE(cppcoreguidelines-no-malloc) in AlignedFree()
273 // For GLIBC, uordblks is total size of space which is allocated by malloc in GetNativeBytesFromMallinfo()
274 …ile libc, uordblks is total size of space which is allocated by malloc or mmap called by malloc for in GetNativeBytesFromMallinfo()
286 …// For GLIBC, hblkhd is total size of space which is allocated by mmap called by malloc for non-sm… in GetNativeBytesFromMallinfo()
/arkcompiler/ets_runtime/ecmascript/platform/unix/mac/
Dos.cpp19 #include <malloc/malloc.h>
/arkcompiler/runtime_core/libpandabase/mem/
Dmalloc_mem_pool-inl.h79 void *mem = std::malloc(size); // NOLINT(cppcoreguidelines-no-malloc) in AllocPoolImpl()
89 std::free(mem); // NOLINT(cppcoreguidelines-no-malloc) in FreePoolImpl()
Dpool_manager.h23 enum class PoolType { MALLOC, MMAP }; enumerator
Dpool_manager.cpp70 ASSERT(pool_type == PoolType::MALLOC); in GetMallocMemPool()
/arkcompiler/runtime_core/libpandabase/tests/
Dnative_bytes_from_mallinfo_test.cpp32 p1[i] = malloc(64); in TEST()
41 p2[i] = malloc(4 * 1024 * 1024); in TEST()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Djs_pandafile_manager.cpp339 // NOLINTNEXTLINE(cppcoreguidelines-no-malloc) in AllocateBuffer()
340 void *ptr = malloc(size); in AllocateBuffer()
342 LOG_ECMA_MEM(FATAL) << "malloc failed"; in AllocateBuffer()
364 // NOLINTNEXTLINE(cppcoreguidelines-no-malloc) in FreeBuffer()
/arkcompiler/ets_runtime/ecmascript/platform/windows/
Dos.cpp18 #include <malloc.h>
/arkcompiler/ets_runtime/ecmascript/platform/unix/linux/
Dos.cpp18 #include <malloc.h>
/arkcompiler/runtime_core/runtime/mem/
Dmalloc-proxy-allocator.h34 * \brief Class-proxy to the malloc, do some logging.
Dmalloc-proxy-allocator-inl.h24 #include "runtime/mem/malloc-proxy-allocator.h"
Dinternal_allocator-inl.h18 #include "runtime/mem/malloc-proxy-allocator-inl.h"
Dinternal_allocator.h49 MALLOC_ALLOCATOR // Use malloc allocator as internal allocator
/arkcompiler/runtime_core/runtime/tests/
Dmalloc-proxy-allocator-test.cpp20 #include "runtime/mem/malloc-proxy-allocator-inl.h"
Dframe_allocator_test.cpp180 void *invalid_addr = std::malloc(10); in CheckAddrInsideAllocator()
/arkcompiler/runtime_core/cmake/
DClangTidy.cmake138 "-hicpp-no-malloc" # alias for cppcoreguidelines-no-malloc
/arkcompiler/runtime_core/runtime/
Doptions.yaml505 - malloc
507 …description: Default means using malloc for Release, and panda allocators for Debug builds. If we …
/arkcompiler/runtime_core/runtime/include/
Druntime_options.h144 } else if (option == "malloc") { in UseMallocForInternalAllocations()
/arkcompiler/ets_runtime/ecmascript/
Djs_serializer.cpp21 #include <sys/malloc.h>
23 #include <malloc.h>
163 buffer_ = reinterpret_cast<uint8_t *>(malloc(INITIAL_CAPACITY)); in AllocateBuffer()
171 buffer_ = reinterpret_cast<uint8_t *>(malloc(bytes)); in AllocateBuffer()
195 uint8_t *newBuffer = reinterpret_cast<uint8_t *>(malloc(newCapacity)); in ExpandBuffer()

12