4 ms·
Interesting, but how are the strings free'd?
by TorKlingberg 11y ago
Interesting, but how are the strings free'd?
- rwmj 11y agoWhen the pool is freed, all strings in it get freed. Generally you arrange pools to be per-"request" (in a web server), but it might be per-syscall in a kernel. At the end of the syscall, all strings get freed in one go. Pools can also have parent/child relations, so when a parent pool is freed, all child pools are freed.