Home
last modified time | relevance | path

Searched refs:ats_malloc (Results 1 – 25 of 92) sorted by relevance

1234

/dports/www/trafficserver/trafficserver-9.1.1/src/tscore/
H A DIpMapConf.cc90 zret = static_cast<char *>(ats_malloc(ERR_STRING_LEN)); in Load_IpMap_From_File()
142 char *error_str = static_cast<char *>(ats_malloc(ERR_STRING_LEN)); in Load_IpMap_From_File()
161 char *error_str = static_cast<char *>(ats_malloc(ERR_STRING_LEN)); in Load_IpMap_From_File()
165 char *error_str = static_cast<char *>(ats_malloc(ERR_STRING_LEN)); in Load_IpMap_From_File()
174 char *error_str = static_cast<char *>(ats_malloc(ERR_STRING_LEN)); in Load_IpMap_From_File()
180 char *error_str = static_cast<char *>(ats_malloc(ERR_STRING_LEN)); in Load_IpMap_From_File()
H A Dink_memory.cc45 ats_malloc(size_t size) in ats_malloc() function
94 return ats_malloc(size); in ats_memalign()
159 return ats_unique_buf(static_cast<uint8_t *>(ats_malloc(size))); in ats_unique_malloc()
214 void *ptr = ats_malloc(size); in ats_track_malloc()
266 newstr = static_cast<char *>(ats_malloc(length + 1)); in _xstrdup()
284 _r = static_cast<char *>(ats_malloc(s.size() + 1)); in operator =()
H A Dllqueue.cc52 Q->free = (LLQrec *)ats_malloc(RECORD_CHUNK * sizeof(LLQrec)); in newrec()
76 LLQ *new_val = static_cast<LLQ *>(ats_malloc(sizeof(LLQ))); in create_queue()
107 new_val = static_cast<LLQrec *>(ats_malloc(sizeof(LLQrec))); in enqueue()
H A DMMH.cc411 xxh = (i4_t *)ats_malloc(4 * sizeof(uint32_t) * TEST_COLLISIONS); in main()
412 xf = (double *)ats_malloc(sizeof(double) * TEST_COLLISIONS); in main()
444 unsigned char *s1 = (unsigned char *)ats_malloc(l + 3); in main()
447 unsigned char *s2 = (unsigned char *)ats_malloc(l + 3); in main()
450 unsigned char *s3 = (unsigned char *)ats_malloc(l + 3); in main()
H A DTokenizer.cc254 add_ptr = static_cast<char *>(ats_malloc(length + 1)); in addToken()
269 add_node->next = static_cast<tok_node *>(ats_malloc(sizeof(tok_node))); in addToken()
/dports/www/trafficserver/trafficserver-9.1.1/lib/records/
H A DRecConfigParse.cc69 *file_buf = static_cast<char *>(ats_malloc(*file_size + 1)); in RecFileImport_Xmalloc()
260 cfe = static_cast<RecConfigFileEntry *>(ats_malloc(sizeof(RecConfigFileEntry))); in RecConfigFileParse()
270 cfe = static_cast<RecConfigFileEntry *>(ats_malloc(sizeof(RecConfigFileEntry))); in RecConfigFileParse()
H A DRecMessage.cc47 msg = static_cast<RecMessage *>(ats_malloc(sizeof(RecMessageHdr) + initial_size)); in RecMessageAlloc()
272 …msg = static_cast<RecMessage *>(ats_malloc((msg_hdr.o_end - msg_hdr.o_start) + sizeof(RecMessageHd… in RecMessageReadFromDisk()
/dports/www/trafficserver/trafficserver-9.1.1/proxy/
H A DPlugin.cc226 str = static_cast<char *>(ats_malloc(128)); in plugin_expand()
236 str = static_cast<char *>(ats_malloc(128)); in plugin_expand()
246 str = static_cast<char *>(ats_malloc(128)); in plugin_expand()
H A DStatPages.cc62 stat_pages[n_stat_pages].module = static_cast<char *>(ats_malloc(strlen(module) + 3)); in register_http()
179 response = static_cast<char *>(ats_malloc(size)); in resp_add()
/dports/www/trafficserver/trafficserver-9.1.1/iocore/cache/
H A DRamCacheCLFUS.cc178 …Entry, hash_link) *new_bucket = static_cast<DList(RamCacheCLFUSEntry, hash_link) *>(ats_malloc(s)); in _resize_hashtable()
194 this->_seen = static_cast<uint16_t *>(ats_malloc(size)); in _resize_hashtable()
259 b = static_cast<char *>(ats_malloc(e->len)); in get()
463 b = static_cast<char *>(ats_malloc(l)); in compress_entries()
527 bb = static_cast<char *>(ats_malloc(l)); in compress_entries()
538 bb = static_cast<char *>(ats_malloc(e->len)); in compress_entries()
612 char *b = static_cast<char *>(ats_malloc(len)); in put()
722 char *b = static_cast<char *>(ats_malloc(len)); in put()
H A DCacheHosting.cc115 char *data = static_cast<char *>(ats_malloc(rlen + 1)); in Match()
288 current = static_cast<matcher_line *>(ats_malloc(sizeof(matcher_line))); in BuildTableFromString()
429 cp = static_cast<CacheVol **>(ats_malloc(cp_list_len * sizeof(CacheVol *))); in Init()
445 vols = static_cast<Vol **>(ats_malloc(num_vols * sizeof(Vol *))); in Init()
514 cp = static_cast<CacheVol **>(ats_malloc(num_cachevols * sizeof(CacheVol *))); in Init()
571 vols = static_cast<Vol **>(ats_malloc(num_vols * sizeof(Vol *))); in Init()
H A DRamCacheLRU.cc88 …RUEntry, hash_link) *new_bucket = static_cast<DList(RamCacheLRUEntry, hash_link) *>(ats_malloc(s)); in resize_hashtable()
104 seen = static_cast<uint16_t *>(ats_malloc(size)); in resize_hashtable()
H A DCache.cc596 gdisks = static_cast<CacheDisk **>(ats_malloc(gndisks * sizeof(CacheDisk *))); in start_internal()
827 gvol = static_cast<Vol **>(ats_malloc(gnvol * sizeof(Vol *))); in diskInitialized()
1256 hash_text = static_cast<char *>(ats_malloc(hash_text_size)); in init()
1277 evacuate = static_cast<DLL<EvacuationBlock> *>(ats_malloc(evac_len)); in init()
1819 unsigned int *mapping = static_cast<unsigned int *>(ats_malloc(sizeof(unsigned int) * num_vols)); in build_vol_hash_table()
1820 Vol **p = static_cast<Vol **>(ats_malloc(sizeof(Vol *) * num_vols)); in build_vol_hash_table()
1883 rtable_pair *rtable = static_cast<rtable_pair *>(ats_malloc(sizeof(rtable_pair) * rtable_size)); in build_vol_hash_table()
2093 cp->vols = static_cast<Vol **>(ats_malloc(cp->num_vols * sizeof(Vol *))); in open()
2548 new_p->disk_vols = static_cast<DiskVol **>(ats_malloc(gndisks * sizeof(DiskVol *))); in cplist_init()
2725 cp->disk_vols = static_cast<DiskVol **>(ats_malloc(gndisks * sizeof(DiskVol *))); in cplist_reconfigure()
[all …]
/dports/www/trafficserver/trafficserver-9.1.1/mgmt/
H A DProcessManager.cc62 MgmtMessageHdr *full_msg = static_cast<MgmtMessageHdr *>(ats_malloc(msg_size)); in read_management_message()
230 void *buffer = ats_malloc(len); in signalConfigFileChild()
249 mh = static_cast<MgmtMessageHdr *>(ats_malloc(sizeof(MgmtMessageHdr) + data_len)); in signalManager()
262 …mh = static_cast<MgmtMessageHdr *>(ats_malloc(sizeof(MgmtMessageHdr) + text.size() + 1)); in signalManager()
H A DAlarms.cc222 atmp = static_cast<Alarm *>(ats_malloc(sizeof(Alarm))); in signalAlarm()
255 atmp->description = static_cast<char *>(ats_malloc(sz)); in signalAlarm()
/dports/www/trafficserver/trafficserver-9.1.1/proxy/hdrs/
H A Dload_http_hdr.cc84 char *r = (char *)ats_malloc(len + 1); in load_string()
205 char *file_buf = (char *)ats_malloc(sizeof(char) * (s_info.st_size + 1)); in load_buffer()
250 char *hdr_heap = (char *)ats_malloc(hdr_size); in load_buffer()
/dports/www/trafficserver/trafficserver-9.1.1/include/tscore/
H A Ddefalloc.h33 return ats_malloc(s); in alloc()
H A Dink_memory.h96 void *ats_malloc(size_t size);
517 explicit ats_scoped_str(size_t n) : super(static_cast<char *>(ats_malloc(n))) {} in ats_scoped_str()
/dports/www/trafficserver/trafficserver-9.1.1/mgmt/api/
H A DEventCallback.cc49 EventCallbackT *event_cb = static_cast<EventCallbackT *>(ats_malloc(sizeof(EventCallbackT))); in create_event_callback()
84 CallbackTable *cb_table = static_cast<CallbackTable *>(ats_malloc(sizeof(CallbackTable))); in create_callback_table()
H A DNetworkMessage.cc134 msgbuf = static_cast<char *>(ats_malloc(msglen + 4)); in send_mgmt_request()
168 req.ptr = static_cast<char *>(ats_malloc(msglen)); in send_mgmt_request()
287 reply.ptr = static_cast<char *>(ats_malloc(msglen)); in send_mgmt_response()
H A DEventControlMain.cc61 EventClientT *ele = static_cast<EventClientT *>(ats_malloc(sizeof(EventClientT))); in new_event_client()
68 ele->adr = static_cast<struct sockaddr *>(ats_malloc(sizeof(struct sockaddr))); in new_event_client()
/dports/www/trafficserver/trafficserver-9.1.1/proxy/logging/
H A DLogFormat.cc67 m_format_str = static_cast<char *>(ats_malloc(m_format_str_size)); in setup()
142 m_agg_marshal_space = static_cast<char *>(ats_malloc(m_field_count * INK_MIN_ALIGN)); in init_variables()
647 *printf_str = static_cast<char *>(ats_malloc(len + 1)); in parse_format_string()
648 *fields_str = static_cast<char *>(ats_malloc(len + 1)); in parse_format_string()
H A DLogFilter.cc205 …m_value_uppercase[i] = static_cast<char *>(ats_malloc(static_cast<unsigned int>(m_length[i]) + 1)); in _setValues()
324 big_buf = static_cast<char *>(ats_malloc(marsh_len)); in wipe_this_entry()
355 big_buf_upper = static_cast<char *>(ats_malloc(static_cast<unsigned int>(marsh_len))); in wipe_this_entry()
407 big_buf = static_cast<char *>(ats_malloc(static_cast<unsigned int>(marsh_len))); in toss_this_entry()
435 big_buf_upper = static_cast<char *>(ats_malloc(static_cast<unsigned int>(marsh_len))); in toss_this_entry()
/dports/www/trafficserver/trafficserver-9.1.1/mgmt/utils/
H A DExpandingArray.cc34 internalArray = static_cast<void **>(ats_malloc(initialSize * sizeof(void *))); in ExpandingArray()
/dports/www/trafficserver/trafficserver-9.1.1/iocore/net/
H A DSSLNextProtocolSet.cc63 *npn = advertised = static_cast<unsigned char *>(ats_malloc(*len)); in create_npn_advertisement()

1234