summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler-dispatcher/lazy-compile-dispatcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/compiler-dispatcher/lazy-compile-dispatcher.h')
-rw-r--r--deps/v8/src/compiler-dispatcher/lazy-compile-dispatcher.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/deps/v8/src/compiler-dispatcher/lazy-compile-dispatcher.h b/deps/v8/src/compiler-dispatcher/lazy-compile-dispatcher.h
index 423e700e7f..ce5919dc51 100644
--- a/deps/v8/src/compiler-dispatcher/lazy-compile-dispatcher.h
+++ b/deps/v8/src/compiler-dispatcher/lazy-compile-dispatcher.h
@@ -6,7 +6,6 @@
#define V8_COMPILER_DISPATCHER_LAZY_COMPILE_DISPATCHER_H_
#include <cstdint>
-#include <map>
#include <memory>
#include <unordered_set>
#include <utility>
@@ -220,14 +219,17 @@ class V8_EXPORT_PRIVATE LazyCompileDispatcher {
std::unordered_set<Job*> all_jobs_;
#endif
+ // A queue of jobs to delete on the background thread(s). Jobs in this queue
+ // are considered dead as far as the rest of the system is concerned, so they
+ // won't be pointed to by any SharedFunctionInfo and won't be in the all_jobs
+ // set above.
+ std::vector<Job*> jobs_to_dispose_;
+
// If not nullptr, then the main thread waits for the task processing
// this job, and blocks on the ConditionVariable main_thread_blocking_signal_.
Job* main_thread_blocking_on_job_;
base::ConditionVariable main_thread_blocking_signal_;
- mutable base::Mutex job_dispose_mutex_;
- std::vector<Job*> jobs_to_dispose_;
-
// Test support.
base::AtomicValue<bool> block_for_testing_;
base::Semaphore semaphore_for_testing_;