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

Unified Diff: src/isolate.cc

Issue 2929853003: Fix use of history timers in background threads. (Closed)
Patch Set: Make explicit when async_counters is needed. Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/isolate.h ('k') | src/wasm/module-compiler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 2e6a38b6aecedda421e719f0f120e08f0499a28b..f11b3f1adae5594dc872a22d11795851b9d8624f 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -2631,8 +2631,8 @@ bool Isolate::PropagatePendingExceptionToExternalTryCatch() {
}
bool Isolate::InitializeCounters() {
- if (counters_shared_) return false;
- counters_shared_ = std::make_shared<Counters>(this);
+ if (async_counters_) return false;
+ async_counters_ = std::make_shared<Counters>(this);
return true;
}
« no previous file with comments | « src/isolate.h ('k') | src/wasm/module-compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698