Skip to content

Instantly share code, notes, and snippets.

@zonomasa
Created May 31, 2014 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zonomasa/a771e44ebd334fce0c6b to your computer and use it in GitHub Desktop.
Save zonomasa/a771e44ebd334fce0c6b to your computer and use it in GitHub Desktop.
jemalloc の有用なビルドオプション
--enable-debug 不正なインプットや動作についてアサート機能を有効にする。
--enable-prof ヒープ使用状況のプロファイリングとメモリリークの検出機能を有効にする。
--disable-fill メモリ領域をゼロ/もしくは不正な値で埋める機能を無効にする。
--enable-lazy-lock pthread_create() を検出し、アプリケーションがシングルスレッドのうちはロックを行わないようにする。
--with-jemalloc-prefix=<prefix> 標準関数にprefixをつける。malloc() が<prefix>_malloc() のようになる。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment