HNHacker News
TopNewBestAskShowJobs

joelsiks

63 karma · joined March 29, 2025

submissionscomments
joelsiks··on Meta’s renewed commitment to jemalloc
Opening up strong with a gigantic merge of the stuff they've been working on in their own fork: https://github.com/jemalloc/jemalloc/pull/2863
joelsiks··on Why is the first C++ (m)allocation always 72 KB?
I did mention it briefly in the post, but you can opt-in for a fixed-size statically allocated buffer by configuring libstdc++ with --enable-libstdcxx-static-eh-pool. Also, you can opt-out of the pool entirely by configuring the number of objects in the pool to zero with the environment variable GLIBCXX_TUNABLES=glibcxx.eh_pool.obj_count=0.
joelsiks··on Why is the first C++ (m)allocation always 72 KB?
The exact implementation of mymalloc isn't relevant to the post. I have an old allocator published at https://github.com/joelsiks/jsmalloc that I did as part of my Master's thesis, which uses a similar debug-logging mechanism that is described in the post.