Commit d332fcd4 authored by tzik's avatar tzik Committed by Commit bot

[DoDelete] Hold function name in Deletehelper::DoDelete

Hold __FUNCTION__ in DoDelete stack to identify for which class DoDelete() is called on the core dump.

BUG=393634

Review URL: https://codereview.chromium.org/522643003

Cr-Commit-Position: refs/heads/master@{#293109}
parent dfd9d111
......@@ -6,6 +6,7 @@
#define BASE_SEQUENCED_TASK_RUNNER_HELPERS_H_
#include "base/basictypes.h"
#include "base/debug/alias.h"
// TODO(akalin): Investigate whether it's possible to just have
// SequencedTaskRunner use these helpers (instead of MessageLoop).
......@@ -36,6 +37,10 @@ class DeleteHelper {
template <class T2, class R> friend class subtle::DeleteHelperInternal;
static void DoDelete(const void* object) {
// TODO(tzik): Remove this after http://crbug.com/393634 is fixed.
const char* function_name = __FUNCTION__;
debug::Alias(&function_name);
delete reinterpret_cast<const T*>(object);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment