21size_t YoungGenerationTaskTriggerSize(Heap*
heap) {
22 size_t young_capacity = 0;
25 young_capacity =
heap->sticky_space()->Capacity() -
26 heap->sticky_space()->old_objects_size();
28 young_capacity =
heap->new_space()->TotalCapacity();
30 return young_capacity *
v8_flags.minor_gc_task_trigger / 100;
33size_t YoungGenerationSize(Heap*
heap) {
34 return v8_flags.sticky_mark_bits ?
heap->sticky_space()->young_objects_size()
35 :
heap->new_space()->Size();
72 const size_t new_space_threshold = YoungGenerationTaskTriggerSize(
heap_);
73 const size_t new_space_size = YoungGenerationSize(
heap_);
74 if (new_space_size < new_space_threshold) {
75 return new_space_threshold - new_space_size;
144 std::shared_ptr<v8::TaskRunner> taskrunner =
146 if (taskrunner->NonNestableTasksEnabled()) {
147 std::unique_ptr<Task> task = std::make_unique<Task>(
heap_->
isolate(),
this);
149 taskrunner->PostNonNestableTask(std::move(task));
176 if (
heap->incremental_marking()->IsMajorMarking()) {
union v8::internal::@341::BuiltinMetadata::KindSpecificData data
static constexpr intptr_t kNotUsingFixedStepSize
static constexpr Id kInvalidTaskId
TryAbortResult TryAbort(Id id)
MainAllocator * new_space_allocator()
bool IsTearingDown() const
LocalHeap * main_thread_local_heap()
std::shared_ptr< v8::TaskRunner > GetForegroundTaskRunner(TaskPriority priority=TaskPriority::kUserBlocking) const
Isolate * isolate() const
HeapAllocator * allocator()
CancelableTaskManager * cancelable_task_manager()
void RemoveGCEpilogueCallback(GCEpilogueCallback *callback, void *data)
V8_EXPORT_PRIVATE void AddAllocationObserver(AllocationObserver *observer)
V8_INLINE bool IsLabValid() const
V8_EXPORT_PRIVATE void RemoveAllocationObserver(AllocationObserver *observer)
Isolate * isolate() const
Task(Isolate *isolate, MinorGCJob *job)
void RunInternal() override
MinorGCJob(Heap *heap) V8_NOEXCEPT
CancelableTaskManager::Id current_task_id_
void CancelTaskIfScheduled()
ScheduleMinorGCTaskObserver(MinorGCJob *job, Heap *heap)
~ScheduleMinorGCTaskObserver() final
static void GCEpilogueCallback(void *data)
intptr_t GetNextStepSize() final
void RemoveFromNewSpace()
void Step(int, Address, size_t) final
LiftoffAssembler::CacheState state
V8_EXPORT_PRIVATE FlagValues v8_flags
#define DCHECK_IMPLIES(v1, v2)
#define DCHECK(condition)
#define DCHECK_EQ(v1, v2)
#define TRACE_EVENT_CALL_STATS_SCOPED(isolate, category_group, name)