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

Unified Diff: src/isolate.cc

Issue 170483002: Ensure that the worker pool is running if we intend to use it (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 | src/libplatform/default-platform.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 ca324603f79bdbbab5b62972c72ab84f948fb31d..340edf4db3b3de610069bb48a38e5b3044a35633 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -39,6 +39,9 @@
#include "heap-profiler.h"
#include "hydrogen.h"
#include "isolate-inl.h"
+#ifdef V8_USE_DEFAULT_PLATFORM
tfarina 2014/02/18 16:49:02 separate this out, like we generally do in chromiu
jochen (gone - plz use gerrit) 2014/02/18 21:39:01 in v8 the headers are sorted regardless of defines
+#include "libplatform/default-platform.h"
+#endif
#include "lithium-allocator.h"
#include "log.h"
#include "messages.h"
@@ -2017,7 +2020,12 @@ bool Isolate::Init(Deserializer* des) {
max_available_threads_ = Max(Min(CPU::NumberOfProcessorsOnline(), 4), 1);
}
- if (!FLAG_job_based_sweeping) {
+ if (FLAG_job_based_sweeping) {
+#ifdef V8_USE_DEFAULT_PLATFORM
+ static_cast<DefaultPlatform*>(V8::GetCurrentPlatform())
+ ->EnsureInitialized();
+#endif
+ } else {
num_sweeper_threads_ =
SweeperThread::NumberOfThreads(max_available_threads_);
}
« no previous file with comments | « no previous file | src/libplatform/default-platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698