Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Unified Diff: base/debug/stack_trace.cc

Issue 7766013: [Mac] Capture -dealloc backtrace to log with CrZombie messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/debug/stack_trace.cc
diff --git a/base/debug/stack_trace.cc b/base/debug/stack_trace.cc
index 7c44f7afeaef3f3ace0d3839c8dd51939ace635c..7fa059d9508a6ee3a90f5ab10d0dfc469b4c08c7 100644
--- a/base/debug/stack_trace.cc
+++ b/base/debug/stack_trace.cc
@@ -7,6 +7,12 @@
namespace base {
namespace debug {
+StackTrace::StackTrace(const void* const* trace, int count) {
+ if (count)
+ memcpy(trace_, trace, count * sizeof(trace[0]));
Mark Mentovai 2011/08/27 00:29:02 This is very dangerous. trace_ only has room for k
Scott Hess - ex-Googler 2011/08/27 05:15:40 Oops, capped that.
+ count_ = count;
+}
+
StackTrace::~StackTrace() {
}

Powered by Google App Engine
This is Rietveld 408576698