4 ms·
> You have Doug Lea to thank for that. Wait, you don't mean your allocator is based on dlmalloc, do you?
by senderista 2y ago
> You have Doug Lea to thank for that.
Wait, you don't mean your allocator is based on dlmalloc, do you?
- jart 2y agoYes. Is there something wrong with that? If your program links pthread_create() then cosmo creates a dlmalloc arena for each core on your computer and uses sched_getcpu() to index them combined with raw nsync locks.
- senderista 2y agoI thought that’s pretty much what ptmalloc did (glibc malloc is forked ptmalloc3)?