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

Unified Diff: src/optimizing-compiler-thread.cc

Issue 938683002: Add --single-threaded flag that disables background threads. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | « src/isolate.cc ('k') | test/mjsunit/single-threaded.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/optimizing-compiler-thread.cc
diff --git a/src/optimizing-compiler-thread.cc b/src/optimizing-compiler-thread.cc
index 5999df9d6d724916c4c3d5d99f177e0e29c70a5c..c83963a32fa9bd5a9c5f0b1ce01e2bc13a35b1ae 100644
--- a/src/optimizing-compiler-thread.cc
+++ b/src/optimizing-compiler-thread.cc
@@ -372,6 +372,7 @@ void OptimizingCompilerThread::QueueForOptimization(OptimizedCompileJob* job) {
if (FLAG_block_concurrent_recompilation) {
blocked_jobs_++;
} else if (job_based_recompilation_) {
+ DCHECK(!FLAG_single_threaded);
base::LockGuard<base::RecursiveMutex> lock(&task_count_mutex_);
++task_count_;
V8::GetCurrentPlatform()->CallOnBackgroundThread(
@@ -390,6 +391,7 @@ void OptimizingCompilerThread::Unblock() {
}
while (blocked_jobs_ > 0) {
if (job_based_recompilation_) {
+ DCHECK(!FLAG_single_threaded);
V8::GetCurrentPlatform()->CallOnBackgroundThread(
new CompileTask(isolate_), v8::Platform::kShortRunningTask);
} else {
« no previous file with comments | « src/isolate.cc ('k') | test/mjsunit/single-threaded.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698