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

Unified Diff: runtime/vm/profiler.cc

Issue 3001473002: [vm] Fix flaky crash in StackTraceMallocHookLengthTest. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « runtime/vm/malloc_hooks_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/profiler.cc
diff --git a/runtime/vm/profiler.cc b/runtime/vm/profiler.cc
index e869f04802082edd177639565790d87fada7301b..0c17451e492541aeb16b4d311e1d52c1cf033411 100644
--- a/runtime/vm/profiler.cc
+++ b/runtime/vm/profiler.cc
@@ -84,8 +84,8 @@ void Profiler::InitOnce() {
}
void Profiler::InitAllocationSampleBuffer() {
- if (FLAG_profiler_native_memory &&
- (Profiler::allocation_sample_buffer_ == NULL)) {
+ ASSERT(Profiler::allocation_sample_buffer_ == NULL);
+ if (FLAG_profiler_native_memory) {
Profiler::allocation_sample_buffer_ = new AllocationSampleBuffer();
}
}
« no previous file with comments | « runtime/vm/malloc_hooks_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698