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

Unified Diff: runtime/vm/malloc_hooks_test.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 | « no previous file | runtime/vm/profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/malloc_hooks_test.cc
diff --git a/runtime/vm/malloc_hooks_test.cc b/runtime/vm/malloc_hooks_test.cc
index b9bb73e8c89ca262731d85521d1a3b9bac5ac733..aa4c5374f04253fb85b413832ecc9a9ec31f14b8 100644
--- a/runtime/vm/malloc_hooks_test.cc
+++ b/runtime/vm/malloc_hooks_test.cc
@@ -30,7 +30,6 @@ class EnableMallocHooksScope : public ValueObject {
EnableMallocHooksScope() {
saved_enable_malloc_hooks_ = FLAG_profiler_native_memory;
FLAG_profiler_native_memory = true;
- Profiler::InitAllocationSampleBuffer();
MallocHooks::InitOnce();
MallocHooks::ResetStats();
}
@@ -53,6 +52,7 @@ class EnableMallocHooksAndStacksScope : public EnableMallocHooksScope {
FLAG_profiler = true;
Profiler::InitOnce();
}
+ MallocHooks::ResetStats();
}
~EnableMallocHooksAndStacksScope() {
« no previous file with comments | « no previous file | runtime/vm/profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698