base: disable FastAlloc in debug builds by default
authorSteve Reinhardt <steve.reinhardt@amd.com>
Fri, 18 Mar 2011 18:47:11 +0000 (11:47 -0700)
committerSteve Reinhardt <steve.reinhardt@amd.com>
Fri, 18 Mar 2011 18:47:11 +0000 (11:47 -0700)
commit38aa50bb49ac8621fe9cc6a85ad6f39a61c76bb3
tree674010fc34eb5c0afe027434e3134859df8e37bd
parent6daf44dae6dbe931e2a1493cd0e33ca9732509dd
base: disable FastAlloc in debug builds by default
FastAlloc's reuse policies can mask allocation bugs, so
we typically want it disabled when debugging.  Set
FORCE_FAST_ALLOC to enable even when debugging, and set
NO_FAST_ALLOC to disable even in non-debug builds.
SConstruct
src/base/fast_alloc.cc
src/base/fast_alloc.hh