Home
last modified time | relevance | path

Searched refs:safe_malloc (Results 1 – 25 of 29) 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 DSmallVector.cpp123 void *NewEltsReplace = llvm::safe_malloc(NewCapacity * TSize); in replaceAllocation()
138 void *NewElts = llvm::safe_malloc(NewCapacity * TSize); in mallocForGrow()
151 NewElts = llvm::safe_malloc(NewCapacity * TSize); in grow_pod()
H A DSmallPtrSet.cpp34 CurArray = (const void**)safe_malloc(sizeof(void*) * CurArraySize); in shrink_and_clear()
118 const void **NewBuckets = (const void**) safe_malloc(sizeof(void*) * NewSize); in Grow()
148 CurArray = (const void**)safe_malloc(sizeof(void*) * that.CurArraySize); in SmallPtrSetImplBase()
179 CurArray = (const void**)safe_malloc(sizeof(void*) * RHS.CurArraySize); in copyFrom()
H A DRWMutex.cpp48 static_cast<pthread_rwlock_t*>(safe_malloc(sizeof(pthread_rwlock_t))); in RWMutexImpl()
/freebsd/sys/contrib/openzfs/cmd/zstream/
H A Dzstream_util.c46 safe_malloc(size_t size) in safe_malloc() function
170 uint8_t *outbuff = safe_malloc(logical_size); in decompress_buffer()
200 uint8_t *outbuff = safe_malloc(inbuff_size); in compress_buffer()
H A Dzstream_util.h50 safe_malloc(size_t size);
H A Dzstream_queue.c300 zstream_queue_t *queue = safe_malloc(sizeof (zstream_queue_t)); in zstream_queue_create()
304 .zq_slots = safe_malloc(params->qp_queue_length * in zstream_queue_create()
314 uint8_t *items = safe_malloc(params->qp_queue_length * qpis_rounded); in zstream_queue_create()
H A Dzstream_redup.c157 item->dp_payload = safe_malloc(item->dp_payload_size); in chain_redup_writes()
H A Dzstream_io.c246 item->dp_payload = safe_malloc(item->dp_payload_size); in chain_read()
H A Dzstream_raw.c487 context.zeros.iov = safe_malloc(iov_max * sizeof (struct iovec)); in zstream_do_raw()
/freebsd/sys/contrib/openzfs/cmd/zfs/
H A Dzfs_util.h25 void *safe_malloc(size_t size);
H A Dzfs_iter.c92 zfs_node_t *node = safe_malloc(sizeof (zfs_node_t)); in zfs_callback()
171 col = safe_malloc(sizeof (zfs_sort_column_t)); in zfs_add_sort_column()
176 col->sc_user_prop = safe_malloc(strlen(name) + 1); in zfs_add_sort_column()
H A Dzfs_project.c45 zpi = safe_malloc(sizeof (zfs_project_item_t) + strlen(name) + 1); in zfs_project_item_alloc()
H A Dzfs_main.c465 safe_malloc(size_t size) in safe_malloc() function
3070 node = safe_malloc(sizeof (us_node_t)); in userspace_cb()
5706 safe_malloc(sizeof (deleg_perm_node_t)); in parse_who_perm()
5756 who_perm_node_t *node = safe_malloc( in parse_fs_perm()
5826 fs_perm_node_t *node = safe_malloc(sizeof (fs_perm_node_t)); in parse_fs_perm_set()
7463 options = safe_malloc(MNT_LINE_MAX + 1); in share_mount()
7945 node = safe_malloc(sizeof (unshare_unmount_node_t)); in unshare_unmount()
8549 char *progbuf = safe_malloc(progsize); in zfs_do_channel_program()
9517 newargv = safe_malloc((argc + 1) * sizeof (newargv[0])); in main()
/freebsd/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_iter.c74 zpool_node_t *node, *new = safe_malloc(sizeof (zpool_node_t)); in add_pool()
125 zlp = safe_malloc(sizeof (zpool_list_t)); in pool_list_get()
350 uniq_cols_width = safe_malloc(sizeof (*uniq_cols_width) * cnt); in process_unique_cmd_columns()
677 vcdl = safe_malloc(sizeof (vdev_cmd_data_list_t)); in all_pools_for_each_vdev_run()
H A Dzpool_util.c31 safe_malloc(size_t size) in safe_malloc() function
H A Dzpool_util.h33 void *safe_malloc(size_t);
H A Dzpool_main.c2492 async_export_args_t *aea = safe_malloc(sizeof (async_export_args_t)); in zpool_export_one_async()
4032 import_parameters_t *ip = safe_malloc( in import_pools()
5266 newnva = safe_malloc(alloc_size); in calc_and_alloc_stats_ex()
5267 oldnva = safe_malloc(alloc_size); in calc_and_alloc_stats_ex()
5268 calcnva = safe_malloc(alloc_size); in calc_and_alloc_stats_ex()
5275 calcnva[j].data = safe_malloc(alloc_size); in calc_and_alloc_stats_ex()
5600 calcvs = safe_malloc(sizeof (*calcvs)); in print_vdev_stats()
9926 errl[i] = safe_malloc(len); in errors_nvlist()
10719 pathname = safe_malloc(len); in print_error_log()
14259 newargv = safe_malloc((argc + 1) * sizeof (newargv[0])); in main()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DParsedTemplate.h204 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.cpp51 llvm::safe_malloc(totalSizeToAlloc<Token>(UnexpArgTokens.size()))) in create()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DObject.cpp346 char *str = static_cast<char*>(safe_malloc(ret.size())); in LLVMGetRelocationTypeName()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DOrcV2CBindings.cpp488 safe_malloc(Symbols.size() * sizeof(LLVMOrcCSymbolFlagsMapPair))); in LLVMOrcMaterializationResponsibilityGetSymbols()
517 static_cast<LLVMOrcSymbolStringPoolEntryRef *>(safe_malloc( in LLVMOrcMaterializationResponsibilityGetRequestedSymbols()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DNestedNameSpecifier.cpp461 char *NewBuffer = static_cast<char *>(llvm::safe_malloc(NewCapacity)); in Append()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDataLayout.cpp718 StructLayout *L = (StructLayout *)safe_malloc( in getStructLayout()

12