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

Side by Side Diff: base/trace_event/heap_profiler_allocation_context_tracker.h

Issue 1975393002: Check stack pointer to be inside stack when unwinding. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix renderer deadlock on Linux Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_TRACE_EVENT_HEAP_PROFILER_ALLOCATION_CONTEXT_TRACKER_H_ 5 #ifndef BASE_TRACE_EVENT_HEAP_PROFILER_ALLOCATION_CONTEXT_TRACKER_H_
6 #define BASE_TRACE_EVENT_HEAP_PROFILER_ALLOCATION_CONTEXT_TRACKER_H_ 6 #define BASE_TRACE_EVENT_HEAP_PROFILER_ALLOCATION_CONTEXT_TRACKER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/atomicops.h" 10 #include "base/atomicops.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 // The thread name is used as the first entry in the pseudo stack. 95 // The thread name is used as the first entry in the pseudo stack.
96 const char* thread_name_; 96 const char* thread_name_;
97 97
98 // Stack of tasks' contexts. Context serves as a different dimension than 98 // Stack of tasks' contexts. Context serves as a different dimension than
99 // pseudo stack to cluster allocations. 99 // pseudo stack to cluster allocations.
100 std::vector<const char*> task_contexts_; 100 std::vector<const char*> task_contexts_;
101 101
102 uint32_t ignore_scope_depth_; 102 uint32_t ignore_scope_depth_;
103 103
104 #if HAVE_TRACE_STACK_FRAME_POINTERS && !defined(OS_NACL)
105 debug::PerThreadStackInfo stack_info_;
106 #endif
107
104 DISALLOW_COPY_AND_ASSIGN(AllocationContextTracker); 108 DISALLOW_COPY_AND_ASSIGN(AllocationContextTracker);
105 }; 109 };
106 110
107 } // namespace trace_event 111 } // namespace trace_event
108 } // namespace base 112 } // namespace base
109 113
110 #endif // BASE_TRACE_EVENT_HEAP_PROFILER_ALLOCATION_CONTEXT_TRACKER_H_ 114 #endif // BASE_TRACE_EVENT_HEAP_PROFILER_ALLOCATION_CONTEXT_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698