Home
last modified time | relevance | path

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

12

/freebsd/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/contrib/llvm-project/llvm/lib/Support/
H A DSmallPtrSet.cpp34 CurArray = (const void**)safe_malloc(sizeof(void*) * CurArraySize); in shrink_and_clear()
100 const void **NewBuckets = (const void**) safe_malloc(sizeof(void*) * NewSize); in Grow()
130 CurArray = (const void**)safe_malloc(sizeof(void*) * that.CurArraySize); in SmallPtrSetImplBase()
159 CurArray = (const void**)safe_malloc(sizeof(void*) * RHS.CurArraySize); in CopyFrom()
H A DSmallVector.cpp115 void *NewEltsReplace = llvm::safe_malloc(NewCapacity * TSize); in replaceAllocation()
130 void *NewElts = llvm::safe_malloc(NewCapacity * TSize); in mallocForGrow()
143 NewElts = llvm::safe_malloc(NewCapacity * TSize); in grow_pod()
H A DRWMutex.cpp47 static_cast<pthread_rwlock_t*>(safe_malloc(sizeof(pthread_rwlock_t))); in RWMutexImpl()
/freebsd/sys/contrib/openzfs/cmd/zfs/
H A Dzfs_util.h35 void *safe_malloc(size_t size);
H A Dzfs_iter.c103 zfs_node_t *node = safe_malloc(sizeof (zfs_node_t)); in zfs_callback()
183 col = safe_malloc(sizeof (zfs_sort_column_t)); in zfs_add_sort_column()
188 col->sc_user_prop = safe_malloc(strlen(name) + 1); in zfs_add_sort_column()
H A Dzfs_project.c55 zpi = safe_malloc(sizeof (zfs_project_item_t) + strlen(name) + 1); in zfs_project_item_alloc()
H A Dzfs_main.c462 safe_malloc(size_t size) in safe_malloc() function
3014 node = safe_malloc(sizeof (us_node_t)); in userspace_cb()
5715 safe_malloc(sizeof (deleg_perm_node_t)); in parse_who_perm()
5770 who_perm_node_t *node = safe_malloc( in parse_fs_perm()
5843 fs_perm_node_t *node = safe_malloc(sizeof (fs_perm_node_t)); in parse_fs_perm_set()
7483 options = safe_malloc(MNT_LINE_MAX + 1); in share_mount()
7955 node = safe_malloc(sizeof (unshare_unmount_node_t)); in unshare_unmount()
8473 char *progbuf = safe_malloc(progsize); in zfs_do_channel_program()
9240 newargv = safe_malloc((argc + 1) * sizeof (newargv[0])); in main()
/freebsd/sys/contrib/openzfs/cmd/zstream/
H A Dzstream.h30 extern void *safe_malloc(size_t size);
H A Dzstream_dump.c64 safe_malloc(size_t size) in safe_malloc() function
211 char *buf = safe_malloc(SPA_MAXBLOCKSIZE); in zstream_do_dump()
394 buf = safe_malloc(sz); in zstream_do_dump()
H A Dzstream_recompress.c70 char *buf = safe_malloc(bufsz); in zstream_do_recompress()
H A Dzstream_decompress.c71 char *buf = safe_malloc(bufsz); in zstream_do_decompress()
/freebsd/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_iter.c87 zpool_node_t *node = safe_malloc(sizeof (zpool_node_t)); in add_pool()
122 zlp = safe_malloc(sizeof (zpool_list_t)); in pool_list_get()
334 uniq_cols_width = safe_malloc(sizeof (*uniq_cols_width) * cnt); in process_unique_cmd_columns()
660 vcdl = safe_malloc(sizeof (vdev_cmd_data_list_t)); in all_pools_for_each_vdev_run()
H A Dzpool_util.c41 safe_malloc(size_t size) in safe_malloc() function
H A Dzpool_util.h43 void *safe_malloc(size_t);
H A Dzpool_main.c2473 async_export_args_t *aea = safe_malloc(sizeof (async_export_args_t)); in zpool_export_one_async()
3995 import_parameters_t *ip = safe_malloc( in import_pools()
5221 newnva = safe_malloc(alloc_size); in calc_and_alloc_stats_ex()
5222 oldnva = safe_malloc(alloc_size); in calc_and_alloc_stats_ex()
5223 calcnva = safe_malloc(alloc_size); in calc_and_alloc_stats_ex()
5230 calcnva[j].data = safe_malloc(alloc_size); in calc_and_alloc_stats_ex()
5555 calcvs = safe_malloc(sizeof (*calcvs)); in print_vdev_stats()
9550 errl[i] = safe_malloc(len); in errors_nvlist()
10249 pathname = safe_malloc(len); in print_error_log()
13687 newargv = safe_malloc((argc + 1) * sizeof (newargv[0])); in main()
H A Dzpool_vdev.c504 ret = safe_malloc(sizeof (replication_level_t)); in get_replication()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DParsedTemplate.h205 TemplateIdAnnotation *TemplateId = new (llvm::safe_malloc( in Create()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DLiveIntervalUnion.cpp201 safe_malloc(sizeof(LiveIntervalUnion)*NSize)); in init()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DMacroArgs.cpp52 llvm::safe_malloc(totalSizeToAlloc<Token>(UnexpArgTokens.size()))) in create()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DObject.cpp347 char *str = static_cast<char*>(safe_malloc(ret.size())); in LLVMGetRelocationTypeName()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DOrcV2CBindings.cpp487 safe_malloc(Symbols.size() * sizeof(LLVMOrcCSymbolFlagsMapPair))); in LLVMOrcMaterializationResponsibilityGetSymbols()
516 static_cast<LLVMOrcSymbolStringPoolEntryRef *>(safe_malloc( in LLVMOrcMaterializationResponsibilityGetRequestedSymbols()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DNestedNameSpecifier.cpp475 char *NewBuffer = static_cast<char *>(llvm::safe_malloc(NewCapacity)); in Append()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDataLayout.cpp730 StructLayout *L = (StructLayout *)safe_malloc( in getStructLayout()
/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/
H A DSignals.inc279 AltStack.ss_sp = static_cast<char *>(safe_malloc(AltStackSize));

12