Searched refs:safe_malloc (Results 1 – 25 of 31) sorted by relevance
12
35 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()
55 NewElts = safe_malloc(NewCapacity * TSize); in grow_pod()
53 static_cast<pthread_rwlock_t*>(safe_malloc(sizeof(pthread_rwlock_t))); in RWMutexImpl()
50 static_cast<pthread_mutex_t*>(safe_malloc(sizeof(pthread_mutex_t))); in MutexImpl()
35 void *stack = safe_malloc(n); in allocate_stack()88 void *Mem = safe_malloc(sizeof(int)); in call()
150 void *MemBase = safe_malloc(Size + Alignment - 1 + sizeof(void*)); in Allocate()
26 LLVM_ATTRIBUTE_RETURNS_NONNULL inline void *safe_malloc(size_t Sz) { in safe_malloc() function
99 return safe_malloc(Size); in Allocate()
268 l = safe_malloc(sizeof(struct listener)); in create_ipv6_listener()328 l = safe_malloc(sizeof(struct listener)); in create_wildcard_listeners()357 struct listener* new = safe_malloc(sizeof(struct listener)); in create_bound_listener()514 struct listener* new = safe_malloc(sizeof(struct listener)); in create_bound_listeners()823 if_tmp = safe_malloc(sizeof(struct iname)); in set_interfaces()
33 daemon->dhcp_buff = safe_malloc(256); in lease_init()34 daemon->dhcp_buff2 = safe_malloc(256); in lease_init()
158 daemon->packet = safe_malloc(daemon->packet_buff_sz); in main()244 hdr = safe_malloc(sizeof(*hdr)); in main()257 data = safe_malloc(sizeof(*data) * capsize); in main()
69 iov.iov_base = safe_malloc(iov.iov_len); in netlink_init()
82 free_entries = safe_malloc(sizeof(struct log_entry)); in log_start()
51 if (daemon->options & OPT_LOG) addrbuff = safe_malloc(ADDRSTRLEN); in cache_init()56 crecp = safe_malloc(daemon->cachesize * sizeof(struct crec)); in cache_init()83 new = safe_malloc(new_size * sizeof(struct crec*)); in rehash()
206 void* safe_malloc(size_t size) { in safe_malloc() function
688 void* safe_malloc(size_t size);
507 ret = safe_malloc(size); in opt_malloc()1138 struct cond_domain* new = safe_malloc(sizeof(struct cond_domain)); in one_opt()2241 r = safe_malloc(sizeof(struct fileread)); in one_file()
190 safe_malloc(sizeof(LiveIntervalUnion)*NSize)); in init()
51 void* safe_malloc(const char *file, const int lineno,
84 safe_malloc(__FILE__, __LINE__, NULL, (size))
231 char *str = static_cast<char*>(safe_malloc(ret.size())); in LLVMGetRelocationTypeName()
51 safe_malloc(__FILE__, __LINE__, (cleanup_fn), (size))
94 safe_malloc(ParamCount * sizeof(LLVMTypeRef))); in Clone()697 safe_malloc(NumHandlers * sizeof(LLVMBasicBlockRef))); in CloneInstruction()
600 safe_malloc(sizeof(StructLayout)+(NumElts-1) * sizeof(uint64_t)); in getStructLayout()
832 safe_malloc(NumWords * sizeof(BitWord))); in allocate()