diff options
author | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-24 05:50:01 +0000 |
---|---|---|
committer | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-24 05:50:01 +0000 |
commit | 5a3ecaaef4cb622ea94d8278cde6ade46066427e (patch) | |
tree | b68a3770b253435aaf20db8f5b441d5cd1dbf190 /base/allocator | |
parent | 1ba42b73180ac0fd4172b7cd50f653e59369265c (diff) | |
download | chromium_src-5a3ecaaef4cb622ea94d8278cde6ade46066427e.zip chromium_src-5a3ecaaef4cb622ea94d8278cde6ade46066427e.tar.gz chromium_src-5a3ecaaef4cb622ea94d8278cde6ade46066427e.tar.bz2 |
Mark all the free'ed region with special markers so that browser
will crash if free'ed memory is accessed (hoping to detect the
memory corrupters).
BUG=76891
TBR=jar
Review URL: http://codereview.chromium.org/6676098
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79258 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/allocator')
-rw-r--r-- | base/allocator/allocator_shim.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/allocator/allocator_shim.cc b/base/allocator/allocator_shim.cc index 97946e7..33217ca 100644 --- a/base/allocator/allocator_shim.cc +++ b/base/allocator/allocator_shim.cc @@ -41,7 +41,8 @@ typedef enum { // See SetupSubprocessAllocator() to specify a default secondary (subprocess) // allocator. // TODO(jar): Switch to using TCMALLOC for the renderer as well. -static Allocator allocator = WINHEAP; +// static Allocator allocator = WINHEAP; +static Allocator allocator = TCMALLOC; // The names of the environment variables that can optionally control the // selection of the allocator. The primary may be used to control overall |