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

Unified Diff: src/isolate.cc

Issue 2108503003: Make v8::Isolate::SetRAILMode thread safe and remove the (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/isolate.h ('k') | no next file » | 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 0075a4197acaedae9da5f48df0b0fac75caa1cc8..4bc865bfe14e2d57661d9020d6710100808751d7 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -1839,7 +1839,7 @@ Isolate::Isolate(bool enable_serializer)
// TODO(bmeurer) Initialized lazily because it depends on flags; can
// be fixed once the default isolate cleanup is done.
random_number_generator_(NULL),
- rail_mode_(PERFORMANCE_DEFAULT),
+ rail_mode_(PERFORMANCE_ANIMATION),
serializer_enabled_(enable_serializer),
has_fatal_error_(false),
initialized_from_snapshot_(false),
@@ -2995,9 +2995,9 @@ void Isolate::CheckDetachedContextsAfterGC() {
}
void Isolate::SetRAILMode(RAILMode rail_mode) {
- rail_mode_ = rail_mode;
+ rail_mode_.SetValue(rail_mode);
if (FLAG_trace_rail) {
- PrintIsolate(this, "RAIL mode: %s\n", RAILModeName(rail_mode_));
+ PrintIsolate(this, "RAIL mode: %s\n", RAILModeName(rail_mode));
}
}
« no previous file with comments | « src/isolate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698