メモリ管理(glibc malloc)資料

twitter で話題になっていたので,読んでた.
glibc malloc 資料
革命の日々! の kosaki さんの資料.
LWN の記事OpenBSDmallocmmap を使うと読んだことはあったんですが,

  o malloc(3) has been rewritten to use the mmap(2) system call,
    introducing unpredictable allocation addresses and guard pages, which
    helps in detecting heap based buffer overflows and prevents various
    types of attacks.

glibc でもサイズによっては mmap 使うんですね.参考になります.