Home
last modified time | relevance | path

Searched refs:safe_malloc (Results 1 – 24 of 24) sorted by relevance

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A DMemAlloc.h25 LLVM_ATTRIBUTE_RETURNS_NONNULL inline void *safe_malloc(size_t Sz) { in safe_malloc() function
32 return safe_malloc(1); in safe_malloc()
46 return safe_malloc(1); in safe_calloc()
59 return safe_malloc(1); in safe_realloc()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DSmallPtrSet.cpp35 CurArray = (const void**)safe_malloc(sizeof(void*) * CurArraySize); in shrink_and_clear()
101 const void **NewBuckets = (const void**) safe_malloc(sizeof(void*) * NewSize); in Grow()
131 CurArray = (const void**)safe_malloc(sizeof(void*) * that.CurArraySize); in SmallPtrSetImplBase()
160 CurArray = (const void**)safe_malloc(sizeof(void*) * RHS.CurArraySize); in CopyFrom()
H A DSmallVector.cpp106 return llvm::safe_malloc(NewCapacity * TSize); in mallocForGrow()
116 NewElts = safe_malloc(NewCapacity * TSize); in grow_pod()
H A DRWMutex.cpp45 static_cast<pthread_rwlock_t*>(safe_malloc(sizeof(pthread_rwlock_t))); in RWMutexImpl()
/freebsd-13.1/sys/contrib/openzfs/cmd/zfs/
H A Dzfs_util.h34 void * safe_malloc(size_t size);
H A Dzfs_iter.c103 zfs_node_t *node = safe_malloc(sizeof (zfs_node_t)); in zfs_callback()
182 col = safe_malloc(sizeof (zfs_sort_column_t)); in zfs_add_sort_column()
187 col->sc_user_prop = safe_malloc(strlen(name) + 1); in zfs_add_sort_column()
H A Dzfs_project.c54 zpi = safe_malloc(sizeof (zfs_project_item_t) + strlen(name) + 1); in zfs_project_item_alloc()
H A Dzfs_main.c435 safe_malloc(size_t size) in safe_malloc() function
2880 node = safe_malloc(sizeof (us_node_t)); in userspace_cb()
5335 safe_malloc(sizeof (deleg_perm_node_t)); in parse_who_perm()
5390 who_perm_node_t *node = safe_malloc( in parse_fs_perm()
5463 fs_perm_node_t *node = safe_malloc(sizeof (fs_perm_node_t)); in parse_fs_perm_set()
7048 options = safe_malloc(MNT_LINE_MAX + 1); in share_mount()
7483 node = safe_malloc(sizeof (unshare_unmount_node_t)); in unshare_unmount()
7992 progbuf = safe_malloc(progsize); in zfs_do_channel_program()
/freebsd-13.1/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_iter.c85 zpool_node_t *node = safe_malloc(sizeof (zpool_node_t)); in add_pool()
121 zlp = safe_malloc(sizeof (zpool_list_t)); in pool_list_get()
330 uniq_cols_width = safe_malloc(sizeof (*uniq_cols_width) * cnt); in process_unique_cmd_columns()
672 vcdl = safe_malloc(sizeof (vdev_cmd_data_list_t)); in all_pools_for_each_vdev_run()
H A Dzpool_util.c40 safe_malloc(size_t size) in safe_malloc() function
H A Dzpool_util.h42 void *safe_malloc(size_t);
H A Dzpool_main.c3537 searchdirs = safe_malloc(sizeof (char *)); in zpool_do_import()
3539 char **tmp = safe_malloc((nsearch + 1) * in zpool_do_import()
3742 searchdirs = safe_malloc(sizeof (char *)); in zpool_do_import()
3744 char **tmp = safe_malloc((nsearch + 1) * in zpool_do_import()
4364 newnva = safe_malloc(alloc_size); in calc_and_alloc_stats_ex()
4365 oldnva = safe_malloc(alloc_size); in calc_and_alloc_stats_ex()
4366 calcnva = safe_malloc(alloc_size); in calc_and_alloc_stats_ex()
4373 calcnva[j].data = safe_malloc(alloc_size); in calc_and_alloc_stats_ex()
4698 calcvs = safe_malloc(sizeof (*calcvs)); in print_vdev_stats()
7987 pathname = safe_malloc(len); in print_error_log()
H A Dzpool_vdev.c500 ret = safe_malloc(sizeof (replication_level_t)); in get_replication()
/freebsd-13.1/sys/contrib/openzfs/cmd/zstream/
H A Dzstream_dump.c63 safe_malloc(size_t size) in safe_malloc() function
210 char *buf = safe_malloc(SPA_MAXBLOCKSIZE); in zstream_do_dump()
396 buf = safe_malloc(sz); in zstream_do_dump()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/
H A DParsedTemplate.h206 TemplateIdAnnotation *TemplateId = new (llvm::safe_malloc( in Create()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DLiveIntervalUnion.cpp202 safe_malloc(sizeof(LiveIntervalUnion)*NSize)); in init()
/freebsd-13.1/contrib/llvm-project/clang/lib/Lex/
H A DMacroArgs.cpp52 llvm::safe_malloc(totalSizeToAlloc<Token>(UnexpArgTokens.size()))) in create()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Object/
H A DObject.cpp347 char *str = static_cast<char*>(safe_malloc(ret.size())); in LLVMGetRelocationTypeName()
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DOrcV2CBindings.cpp425 safe_malloc(Symbols.size() * sizeof(LLVMOrcCSymbolFlagsMapPair))); in LLVMOrcMaterializationResponsibilityGetSymbols()
454 static_cast<LLVMOrcSymbolStringPoolEntryRef *>(safe_malloc( in LLVMOrcMaterializationResponsibilityGetRequestedSymbols()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DNestedNameSpecifier.cpp474 char *NewBuffer = static_cast<char *>(llvm::safe_malloc(NewCapacity)); in Append()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DDataLayout.cpp681 StructLayout *L = (StructLayout *)safe_malloc( in getStructLayout()
H A DCore.cpp354 safe_malloc(MFEs.size() * sizeof(LLVMOpaqueModuleFlagEntry))); in LLVMCopyModuleFlagsMetadata()
949safe_malloc(MVEs.size() * sizeof(LLVMOpaqueValueMetadataEntry))); in llvm_getMetadata()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/Unix/
H A DSignals.inc273 AltStack.ss_sp = static_cast<char *>(safe_malloc(AltStackSize));
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp1032 void *Memory = safe_malloc(MemToAlloc); in visitAllocaInst()