summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler-dispatcher/lazy-compile-dispatcher.h
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2022-04-12 11:10:15 +0200
committerMichaël Zasso <targos@protonmail.com>2022-04-12 22:08:39 +0200
commitfd4f80ce54d7f7b7503e0999f6a9d293d493846d (patch)
tree00fba34b8aabeb481c7128fccee635719ee44a3b /deps/v8/src/compiler-dispatcher/lazy-compile-dispatcher.h
parent73d53fe9f56d7ce5de4b9c9ad5257dc601bbce14 (diff)
downloadnode-new-fd4f80ce54d7f7b7503e0999f6a9d293d493846d.tar.gz
deps: update V8 to 10.1.124.6
PR-URL: https://github.com/nodejs/node/pull/42657 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
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_;