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

Function thread_alloc

src/iocore/eventsystem/ProxyAllocator.cc:30–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28extern int cmd_disable_pfreelist;
29
30void *
31thread_alloc(Allocator &a, ProxyAllocator &l)
32{
33 if (!cmd_disable_pfreelist && l.freelist) {
34 void *v = l.freelist;
35 l.freelist = *static_cast<void **>(l.freelist);
36 --(l.allocated);
37 return v;
38 }
39 return a.alloc_void();
40}
41
42void
43thread_freeup(Allocator &a, ProxyAllocator &l)

Callers

nothing calls this directly

Calls 1

alloc_voidMethod · 0.45

Tested by

no test coverage detected