summaryrefslogtreecommitdiffstats
path: root/base/debug_util.h
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-21 19:44:54 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-21 19:44:54 +0000
commit0ef8a9950e414678454e65bdf6581e7d16dec03f (patch)
tree1a8bb02849f107d7ce81c738205fde32481b0240 /base/debug_util.h
parent9a996a6899163967774c4bf904c26b8c1afb18e5 (diff)
downloadchromium_src-0ef8a9950e414678454e65bdf6581e7d16dec03f.zip
chromium_src-0ef8a9950e414678454e65bdf6581e7d16dec03f.tar.gz
chromium_src-0ef8a9950e414678454e65bdf6581e7d16dec03f.tar.bz2
Copy the leak callstacks onto the stack before crashing in LeakTracker::CheckForLeaks.
This way if it is enabled in release builds, the mini-dump will contain the allocation stacktrace. Review URL: http://codereview.chromium.org/208001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26717 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/debug_util.h')
-rw-r--r--base/debug_util.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/base/debug_util.h b/base/debug_util.h
index 8ccb020..11c1d7c 100644
--- a/base/debug_util.h
+++ b/base/debug_util.h
@@ -25,6 +25,10 @@ class StackTrace {
public:
// Creates a stacktrace from the current location
StackTrace();
+
+ // Note that the default copy constructor and assignment constructors
+ // are OK.
+
#if defined(OS_WIN)
// Creates a stacktrace for an exception.
// Note: this function will throw an import not found (StackWalk64) exception
@@ -48,8 +52,6 @@ class StackTrace {
static const int MAX_TRACES = 62;
void* trace_[MAX_TRACES];
int count_;
-
- DISALLOW_EVIL_CONSTRUCTORS(StackTrace);
};
class DebugUtil {