HackerTrans
TopNewTrendsCommentsPastAskShowJobs

joelsiks

no profile record

Submissions

JIT Compilers and Cache Coherency

joelsiks.com
5 points·by joelsiks·hace 3 meses·0 comments

Why is the first C++ (m)allocation always 72 KB?

joelsiks.com
131 points·by joelsiks·hace 4 meses·36 comments

comments

joelsiks
·hace 4 meses·discuss
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
·hace 4 meses·discuss
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
·hace 4 meses·discuss
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.