‹ BackHN Continuity

Thread

Jemalloc 5.4.0

339 points · 94 comments · gkfasdfasdf

  1. skavi · · focus · HN ↗
    does anyone familiar with the art have thoughts on why only tcmalloc switched from thread caches to cpu caches? would it make linux behavior diverge too much from other platforms?
    1. enduku · · focus · HN ↗
      I think tcmalloc gains on thread churn and oversubscription by going the cpu-cache route on Linux. on other platforms, I am not so sure but that can be offset by say a treiber-stack like setup for cross-thread frees/teardowns. So lesser code for Linux for similar fastpath design I guess.
      1. jeffbee · · focus · HN ↗
        > on other platforms, I am not so sure

        tcmalloc only works on Linux.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.