diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-03 16:53:28 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-03 16:53:28 +0000 |
commit | 684c407d7da343e29a98e115cc66eb7f3057a35a (patch) | |
tree | ce54ed0c53bf154b84c79870331bab54b7e3117d /chrome/browser/chrome_browser_application_mac.mm | |
parent | cb54b3b24d1b9b5e1aaaaa28478da63c90857c5f (diff) | |
download | chromium_src-684c407d7da343e29a98e115cc66eb7f3057a35a.zip chromium_src-684c407d7da343e29a98e115cc66eb7f3057a35a.tar.gz chromium_src-684c407d7da343e29a98e115cc66eb7f3057a35a.tar.bz2 |
[Mac] Enable zombies for all on devchannel.
Attempt to flush out more use-after-free cases in the wild. Right now messages to freed ObjC objects are binned by the object's address, with this change they should aggregate into a bigger bin. Additionally, the treadmill should slightly increase the number of cases caught.
BUG=35590,24987,45676
TEST=none
Review URL: http://codereview.chromium.org/2478004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48838 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_browser_application_mac.mm')
-rw-r--r-- | chrome/browser/chrome_browser_application_mac.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/chrome_browser_application_mac.mm b/chrome/browser/chrome_browser_application_mac.mm index 6e171fd..1a4c908 100644 --- a/chrome/browser/chrome_browser_application_mac.mm +++ b/chrome/browser/chrome_browser_application_mac.mm @@ -165,7 +165,9 @@ BOOL SwizzleNSExceptionInit() { + (void)initialize { // Turn all deallocated Objective-C objects into zombies, keeping // the most recent 10,000 of them on the treadmill. - DCHECK(ObjcEvilDoers::ZombieEnable(YES, 10000)); + // TODO(shess): Convert to a DCHECK() before the next beta channel. + // http://crbug.com/45676 + ObjcEvilDoers::ZombieEnable(YES, 10000); } - init { |