MCPcopy Create free account
hub / github.com/apache/trafficserver / free

Method free

src/tscore/Arena.cc:128–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 -------------------------------------------------------------------------*/
127
128void
129Arena::free(void *mem, size_t size)
130{
131 if (m_blocks) {
132 ArenaBlock *b;
133
134 b = m_blocks;
135 while (b->next) {
136 if (b->m_water_level == (static_cast<char *>(mem) + size)) {
137 b->m_water_level = static_cast<char *>(mem);
138 return;
139 }
140 b = b->next;
141 }
142 }
143}
144
145/*-------------------------------------------------------------------------
146 -------------------------------------------------------------------------*/

Callers 2

test_Allocator.ccFile · 0.45
test_arena.ccFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected