Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/heap/incremental-marking-job.h')
-rw-r--r--deps/v8/src/heap/incremental-marking-job.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/deps/v8/src/heap/incremental-marking-job.h b/deps/v8/src/heap/incremental-marking-job.h
index ed133e88e5b..63c700be4f0 100644
--- a/deps/v8/src/heap/incremental-marking-job.h
+++ b/deps/v8/src/heap/incremental-marking-job.h
@@ -28,15 +28,15 @@ class IncrementalMarkingJob final {
double CurrentTimeToTask(Heap* heap) const;
+ private:
+ class Task;
+ static constexpr double kDelayInSeconds = 10.0 / 1000.0;
+
bool IsTaskPending(TaskType task_type) const {
return task_type == TaskType::kNormal ? normal_task_pending_
: delayed_task_pending_;
}
- private:
- class Task;
- static constexpr double kDelayInSeconds = 10.0 / 1000.0;
-
void SetTaskPending(TaskType task_type, bool value) {
if (task_type == TaskType::kNormal) {
normal_task_pending_ = value;
@@ -45,6 +45,7 @@ class IncrementalMarkingJob final {
}
}
+ base::Mutex mutex_;
double scheduled_time_ = 0.0;
bool normal_task_pending_ = false;
bool delayed_task_pending_ = false;