| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | native_area_allocator.cpp | 34 // 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()
|
| D | native_area_allocator.h | 111 // 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()
|
| D | caddress_allocator.h | 107 // 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/ |
| D | satepoint_GC_0.ll | 16 %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/ |
| D | shared_mm.cpp | 85 // 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/ |
| D | options.yaml | 110 - 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/ |
| D | mem.cpp | 28 #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/ |
| D | os.cpp | 19 #include <malloc/malloc.h>
|
| /arkcompiler/runtime_core/libpandabase/mem/ |
| D | malloc_mem_pool-inl.h | 79 void *mem = std::malloc(size); // NOLINT(cppcoreguidelines-no-malloc) in AllocPoolImpl() 89 std::free(mem); // NOLINT(cppcoreguidelines-no-malloc) in FreePoolImpl()
|
| D | pool_manager.h | 23 enum class PoolType { MALLOC, MMAP }; enumerator
|
| D | pool_manager.cpp | 70 ASSERT(pool_type == PoolType::MALLOC); in GetMallocMemPool()
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | native_bytes_from_mallinfo_test.cpp | 32 p1[i] = malloc(64); in TEST() 41 p2[i] = malloc(4 * 1024 * 1024); in TEST()
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/ |
| D | js_pandafile_manager.cpp | 339 // 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/ |
| D | os.cpp | 18 #include <malloc.h>
|
| /arkcompiler/ets_runtime/ecmascript/platform/unix/linux/ |
| D | os.cpp | 18 #include <malloc.h>
|
| /arkcompiler/runtime_core/runtime/mem/ |
| D | malloc-proxy-allocator.h | 34 * \brief Class-proxy to the malloc, do some logging.
|
| D | malloc-proxy-allocator-inl.h | 24 #include "runtime/mem/malloc-proxy-allocator.h"
|
| D | internal_allocator-inl.h | 18 #include "runtime/mem/malloc-proxy-allocator-inl.h"
|
| D | internal_allocator.h | 49 MALLOC_ALLOCATOR // Use malloc allocator as internal allocator
|
| /arkcompiler/runtime_core/runtime/tests/ |
| D | malloc-proxy-allocator-test.cpp | 20 #include "runtime/mem/malloc-proxy-allocator-inl.h"
|
| D | frame_allocator_test.cpp | 180 void *invalid_addr = std::malloc(10); in CheckAddrInsideAllocator()
|
| /arkcompiler/runtime_core/cmake/ |
| D | ClangTidy.cmake | 138 "-hicpp-no-malloc" # alias for cppcoreguidelines-no-malloc
|
| /arkcompiler/runtime_core/runtime/ |
| D | options.yaml | 505 - malloc 507 …description: Default means using malloc for Release, and panda allocators for Debug builds. If we …
|
| /arkcompiler/runtime_core/runtime/include/ |
| D | runtime_options.h | 144 } else if (option == "malloc") { in UseMallocForInternalAllocations()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_serializer.cpp | 21 #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()
|