| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | MemAlloc.h | 25 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 D | SmallVector.cpp | 123 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 D | SmallPtrSet.cpp | 34 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 D | RWMutex.cpp | 48 static_cast<pthread_rwlock_t*>(safe_malloc(sizeof(pthread_rwlock_t))); in RWMutexImpl()
|
| /freebsd/sys/contrib/openzfs/cmd/zstream/ |
| H A D | zstream_util.c | 46 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 D | zstream_util.h | 50 safe_malloc(size_t size);
|
| H A D | zstream_queue.c | 300 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 D | zstream_redup.c | 157 item->dp_payload = safe_malloc(item->dp_payload_size); in chain_redup_writes()
|
| H A D | zstream_io.c | 246 item->dp_payload = safe_malloc(item->dp_payload_size); in chain_read()
|
| H A D | zstream_raw.c | 487 context.zeros.iov = safe_malloc(iov_max * sizeof (struct iovec)); in zstream_do_raw()
|
| /freebsd/sys/contrib/openzfs/cmd/zfs/ |
| H A D | zfs_util.h | 25 void *safe_malloc(size_t size);
|
| H A D | zfs_iter.c | 92 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 D | zfs_project.c | 45 zpi = safe_malloc(sizeof (zfs_project_item_t) + strlen(name) + 1); in zfs_project_item_alloc()
|
| H A D | zfs_main.c | 465 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 D | zpool_iter.c | 74 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 D | zpool_util.c | 31 safe_malloc(size_t size) in safe_malloc() function
|
| H A D | zpool_util.h | 33 void *safe_malloc(size_t);
|
| H A D | zpool_main.c | 2492 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 D | ParsedTemplate.h | 204 TemplateIdAnnotation *TemplateId = new (llvm::safe_malloc( in Create()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | LiveIntervalUnion.cpp | 201 safe_malloc(sizeof(LiveIntervalUnion)*NSize)); in init()
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | MacroArgs.cpp | 51 llvm::safe_malloc(totalSizeToAlloc<Token>(UnexpArgTokens.size()))) in create()
|
| /freebsd/contrib/llvm-project/llvm/lib/Object/ |
| H A D | Object.cpp | 346 char *str = static_cast<char*>(safe_malloc(ret.size())); in LLVMGetRelocationTypeName()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | OrcV2CBindings.cpp | 488 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 D | NestedNameSpecifier.cpp | 461 char *NewBuffer = static_cast<char *>(llvm::safe_malloc(NewCapacity)); in Append()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | DataLayout.cpp | 718 StructLayout *L = (StructLayout *)safe_malloc( in getStructLayout()
|