diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-13 03:22:03 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-13 03:22:03 +0000 |
commit | b01f6646e6b9d0727505b362a4738099e797b31d (patch) | |
tree | e12be64c9c6ec735d9652cfa8b636587c93f98a4 /base | |
parent | 2057e9c6baf4c2dd88f0eb35151037874a283030 (diff) | |
download | chromium_src-b01f6646e6b9d0727505b362a4738099e797b31d.zip chromium_src-b01f6646e6b9d0727505b362a4738099e797b31d.tar.gz chromium_src-b01f6646e6b9d0727505b362a4738099e797b31d.tar.bz2 |
Make sure Windows default heap will crash on corruption
I'm hoping this will get us some crashes on double
frees, but I'm wary about performance impact, so I'll
land this, and then revert it, to see what impact
it has on the perf bots.
TBR=cpu
Review URL: http://codereview.chromium.org/6686022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77958 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/allocator/win_allocator.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/allocator/win_allocator.cc b/base/allocator/win_allocator.cc index 8ae653a..7ecb1d6 100644 --- a/base/allocator/win_allocator.cc +++ b/base/allocator/win_allocator.cc @@ -20,6 +20,9 @@ bool win_heap_init(bool use_lfh) { // NOTE: Setting LFH may fail. Vista already has it enabled. // And under the debugger, it won't use LFH. So we // ignore any errors. + } else { + HeapSetInformation(win_heap, HeapEnableTerminationOnCorruption, + NULL, 0); } return true; |