Lines Matching refs:heap
5 #include "src/heap/incremental-marking.h"
10 #include "src/heap/concurrent-marking.h"
11 #include "src/heap/embedder-tracing.h"
12 #include "src/heap/gc-idle-time-handler.h"
13 #include "src/heap/gc-tracer-inl.h"
14 #include "src/heap/gc-tracer.h"
15 #include "src/heap/heap-inl.h"
16 #include "src/heap/heap.h"
17 #include "src/heap/incremental-marking-inl.h"
18 #include "src/heap/mark-compact-inl.h"
19 #include "src/heap/mark-compact.h"
20 #include "src/heap/marking-barrier.h"
21 #include "src/heap/marking-visitor-inl.h"
22 #include "src/heap/marking-visitor.h"
23 #include "src/heap/memory-chunk.h"
24 #include "src/heap/object-stats.h"
25 #include "src/heap/objects-visiting-inl.h"
26 #include "src/heap/objects-visiting.h"
27 #include "src/heap/safepoint.h"
45 Heap* heap = incremental_marking_->heap();
46 VMState<GC> state(heap->isolate());
47 RCS_SCOPE(heap->isolate(),
54 IncrementalMarking::IncrementalMarking(Heap* heap, WeakObjects* weak_objects)
55 : heap_(heap),
56 collector_(heap->mark_compact_collector()),
60 marking_state_(heap->isolate()),
61 atomic_marking_state_(heap->isolate()),
62 non_atomic_marking_state_(heap->isolate()) {
69 TRACE_GC(heap()->tracer(), GCTracer::Scope::MC_INCREMENTAL_LAYOUT_CHANGE);
115 // 3) when we are currently not serializing or deserializing the heap, and
116 // 4) not a shared heap.
133 heap()->OldGenerationSizeOfObjects() / MB;
135 heap()->old_generation_allocation_limit() / MB;
136 const size_t global_size_mb = heap()->GlobalSizeOfObjects() / MB;
137 const size_t global_limit_mb = heap()->global_allocation_limit() / MB;
138 heap()->isolate()->PrintWithTimestamp(
164 TRACE_GC_EPOCH(heap()->tracer(), GCTracer::Scope::MC_INCREMENTAL_START,
168 start_time_ms_ = heap()->MonotonicallyIncreasingTimeInMs();
187 explicit IncrementalMarkingRootMarkingVisitor(Heap* heap)
188 : heap_(heap), incremental_marking_(heap->incremental_marking()) {}
226 void MarkRoots(Heap* heap) {
227 IncrementalMarkingRootMarkingVisitor visitor(heap);
228 heap->IterateRoots(
244 heap()->isolate()->PrintWithTimestamp(
250 heap()->isolate()->PrintWithTimestamp(
261 TRACE_GC(heap()->tracer(),
272 MarkingBarrier::ActivateAll(heap(), is_compacting_);
273 GlobalHandles::EnableMarkingBarrier(heap()->isolate());
287 heap()->isolate()->PrintWithTimestamp("[IncrementalMarking] Running\n");
293 TRACE_GC(heap()->tracer(),
305 heap()->old_space()->MarkLinearAllocationAreaBlack();
306 if (heap()->map_space()) heap()->map_space()->MarkLinearAllocationAreaBlack();
307 heap()->code_space()->MarkLinearAllocationAreaBlack();
308 heap()->safepoint()->IterateLocalHeaps([](LocalHeap* local_heap) {
312 heap()->isolate()->PrintWithTimestamp(
319 heap()->old_space()->UnmarkLinearAllocationArea();
320 if (heap()->map_space()) heap()->map_space()->UnmarkLinearAllocationArea();
321 heap()->code_space()->UnmarkLinearAllocationArea();
322 heap()->safepoint()->IterateLocalHeaps(
325 heap()->isolate()->PrintWithTimestamp(
335 heap()->isolate()->PrintWithTimestamp(
374 bool map_retaining_is_disabled = heap()->ShouldReduceMemory() ||
376 std::vector<WeakArrayList> retained_maps_list = heap()->FindAllRetainedMaps();
419 TRACE_GC(heap()->tracer(), GCTracer::Scope::MC_INCREMENTAL_FINALIZE_BODY);
434 heap()->isolate()->PrintWithTimestamp(
445 heap()->minor_mark_compact_collector()->marking_state();
448 MarkingBarrier::PublishAll(heap());
476 // Object got promoted into the shared heap. Drop it from the client
477 // heap marking worklist.
542 TRACE_GC(heap()->tracer(), GCTracer::Scope::MC_INCREMENTAL_EMBEDDER_TRACING);
583 static_cast<int>(heap()->OldGenerationSizeOfObjects() / MB);
585 static_cast<int>(heap()->old_generation_allocation_limit() / MB);
586 heap()->isolate()->PrintWithTimestamp(
623 heap()->isolate()->PrintWithTimestamp(
657 heap()->isolate()->PrintWithTimestamp(
665 heap()->isolate()->PrintWithTimestamp(
672 heap(), IncrementalMarkingJob::TaskType::kNormal);
676 if (heap()->MonotonicallyIncreasingTimeInMs() < time_to_force_completion_) {
678 heap()->isolate()->PrintWithTimestamp(
694 heap()->isolate()->PrintWithTimestamp(
774 ScheduleBytesToMarkBasedOnTime(heap()->MonotonicallyIncreasingTimeInMs());
791 size_t oom_slack = heap()->new_space()->Capacity() + 64 * MB;
793 if (!heap()->CanExpandOldGeneration(oom_slack)) {
794 return heap()->OldGenerationSizeOfObjects() / kTargetStepCountAtOOM;
828 heap()->concurrent_marking()->TotalMarkedBytes();
909 heap()->tracer()->IncrementalMarkingSpeedInBytesPerMillisecond());
914 heap()->tracer()->IncrementalMarkingSpeedInBytesPerMillisecond();