| 28 | extern int cmd_disable_pfreelist; |
| 29 | |
| 30 | void * |
| 31 | thread_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 | |
| 42 | void |
| 43 | thread_freeup(Allocator &a, ProxyAllocator &l) |
nothing calls this directly
no test coverage detected