v8/src/heap
Tobias Tebbi e71ce3093d Revert "[heap] Only start incremental marking when V8 is not in GC VM state."
This reverts commit f124b28d46.

Reason for revert: https://logs.chromium.org/logs/v8/buildbucket/cr-buildbucket/8818719400214419665/+/u/Check_-_stress_concurrent_allocation__flakes_/flush-baseline-code

Original change's description:
> [heap] Only start incremental marking when V8 is not in GC VM state.
>
> Bug: v8:12503
> Change-Id: Icda291d9770c46c7fee3c70dd4df97f320b1956a
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3398113
> Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
> Commit-Queue: Hannes Payer <hpayer@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#79623}

Bug: v8:12503
Change-Id: I067b308cfc4511d89144d2bb65a1dba24db62179
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3553104
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Owners-Override: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79629}
2022-03-25 16:07:53 +00:00
..
base [heap] Fix GCC build because of undefined CHAR_BIT 2022-03-10 14:48:45 +00:00
cppgc cppgc: young-gen: Fix MSVC build 2022-03-25 10:49:46 +00:00
cppgc-js heap: Add incremental mark/sweep step events 2022-03-24 10:05:16 +00:00
third-party [heap] implement more stub method to fix build with msvc 2022-01-12 15:05:53 +00:00
allocation-observer.cc [heap] Fix -Wshadow warnings 2021-11-15 22:00:04 +00:00
allocation-observer.h heap: Add some documentation to AllocationObserver 2022-02-16 09:57:43 +00:00
allocation-result.h Reland "heap: Factor out raw allocation functions into HeapAllocator" 2022-02-23 16:29:26 +00:00
allocation-stats.h [heap] Make AllocationStats methods const 2020-07-07 16:18:06 +00:00
array-buffer-sweeper.cc heap: ArrayBufferSweeper refactoring 2021-09-13 11:49:02 +00:00
array-buffer-sweeper.h heap: ArrayBufferSweeper refactoring 2021-09-13 11:49:02 +00:00
base-space.cc [heap] Move BaseSpace into base-space.h 2020-06-19 09:38:24 +00:00
base-space.h [cleanup][heap] Remove uses of DISALLOW_COPY_AND_ASSIGN 2020-12-02 01:07:49 +00:00
basic-memory-chunk.cc [ext-code-space] Prepare GC for making code space external 2021-10-19 15:48:43 +00:00
basic-memory-chunk.h heap: Remove SWEEP_TO_ITERATE 2022-02-15 11:00:59 +00:00
code-object-registry.cc [heap] Support registering code on the background thread 2021-10-21 09:55:23 +00:00
code-object-registry.h Remove many superfluous STL includes in headers. 2022-01-13 20:56:45 +00:00
code-range.cc [ext-code-space] Fix CodeRange allocation logic 2022-01-26 12:26:17 +00:00
code-range.h [ext-code-space] Fix external code range allocation logic 2021-11-11 08:25:47 +00:00
code-stats.cc [ext-code-space] Use cage-friendly HeapObject::map() in GC 2021-11-26 11:56:00 +00:00
code-stats.h
collection-barrier.cc Reland "[heap] Support multiple clients in shared GC" 2021-11-22 08:40:57 +00:00
collection-barrier.h Reland "[heap] Support multiple clients in shared GC" 2021-11-22 08:40:57 +00:00
combined-heap.cc [heap] Allow enabling --local-heaps by default 2020-06-02 19:03:25 +00:00
combined-heap.h [ext-code-space] Prepare GC for making code space external 2021-10-19 15:48:43 +00:00
concurrent-allocator-inl.h heap: Factor out AllocationResult from heap.h 2022-02-14 08:54:16 +00:00
concurrent-allocator.cc heap: Remove retry space from AllocationResult 2022-02-17 13:59:44 +00:00
concurrent-allocator.h Reland "[heap] Support multiple clients in shared GC" 2021-11-22 08:40:57 +00:00
concurrent-marking.cc Refactor ExternalObjects 2022-03-14 10:50:58 +00:00
concurrent-marking.h heap: Remove unused Worklist 2021-12-02 12:43:01 +00:00
conservative-stack-visitor.cc [heap] Add conservative stack scanning 2020-09-01 12:21:29 +00:00
conservative-stack-visitor.h [heap] Add conservative stack scanning 2020-09-01 12:21:29 +00:00
DIR_METADATA Adjust Monorail label for garbage collection 2021-08-30 09:53:13 +00:00
embedder-tracing-inl.h Check instance type before initializing embedder data slots 2022-03-16 11:34:54 +00:00
embedder-tracing.cc [api] Remove TracedGlobal<> 2022-03-23 21:04:51 +00:00
embedder-tracing.h [api] Remove TracedGlobal<> 2022-03-23 21:04:51 +00:00
evacuation-allocator-inl.h heap: Remove retry space from AllocationResult 2022-02-17 13:59:44 +00:00
evacuation-allocator.h [heap] Add flag for disabling map space 2022-02-18 09:03:07 +00:00
factory-base-inl.h [compiler] TSAN data race on HeapNumber::value_as_bits() 2021-07-06 13:04:17 +00:00
factory-base.cc [osr] Minor refactors in OSR-related code 2022-03-17 10:09:16 +00:00
factory-base.h [heap] Fix NewArrayList tripping DCHECK with LocalFactory 2022-01-10 14:44:08 +00:00
factory-inl.h heap: Call AllocateRawWith directly 2022-02-24 13:27:52 +00:00
factory.cc [debug] Hold on to promises weakly from the debugger's promise stack. 2022-03-24 08:16:32 +00:00
factory.h [debug] Hold on to promises weakly from the debugger's promise stack. 2022-03-24 08:16:32 +00:00
finalization-registry-cleanup-task.cc Add microtasks scope to FinalizationRegistryCleanupTask 2021-05-03 09:42:58 +00:00
finalization-registry-cleanup-task.h [clang-tidy] Make deleted member functions public 2020-06-11 16:47:41 +00:00
free-list-inl.h [heap] Move FreeList related code into heap/free-list.* files 2020-06-12 13:54:10 +00:00
free-list.cc [heap] Guard unprotected memory chunk with a mutex 2021-07-15 08:58:56 +00:00
free-list.h [heap] Use regular FreeList for MapSpace 2020-10-01 14:20:22 +00:00
gc-idle-time-handler.cc heap: Remove context disposal GCs 2021-04-06 09:19:09 +00:00
gc-idle-time-handler.h heap: Remove context disposal GCs 2021-04-06 09:19:09 +00:00
gc-tracer.cc heap: Add incremental mark/sweep step events 2022-03-24 10:05:16 +00:00
gc-tracer.h heap: Add incremental mark/sweep step events 2022-03-24 10:05:16 +00:00
heap-allocator-inl.h heap: Call AllocateRawWith directly 2022-02-24 13:27:52 +00:00
heap-allocator.cc heap: Move headroom for allocation behind --random-gc-interval 2022-02-24 12:21:31 +00:00
heap-allocator.h heap: Call AllocateRawWith directly 2022-02-24 13:27:52 +00:00
heap-controller.cc heap: Remove duplicate code 2021-12-03 09:41:46 +00:00
heap-controller.h
heap-inl.h heap: Call AllocateRawWith directly 2022-02-24 13:27:52 +00:00
heap-layout-tracer.cc [heap] gc_count manully add 1 in prologue callback 2022-01-12 05:49:33 +00:00
heap-layout-tracer.h [heap] trace heap layout before and after gc 2021-12-08 10:18:16 +00:00
heap-write-barrier-inl.h heap: Remove SWEEP_TO_ITERATE 2022-02-15 11:00:59 +00:00
heap-write-barrier.cc [heap] Verify usages of SKIP_WRITE_BARRIER 2022-01-17 15:05:40 +00:00
heap-write-barrier.h [heap] Verify usages of SKIP_WRITE_BARRIER 2022-01-17 15:05:40 +00:00
heap.cc Revert "[heap] Only start incremental marking when V8 is not in GC VM state." 2022-03-25 16:07:53 +00:00
heap.h Revert "[heap] Only start incremental marking when V8 is not in GC VM state." 2022-03-25 16:07:53 +00:00
incremental-marking-inl.h [heap] Improve --track-retaining-path for incremental marking 2021-11-24 10:13:21 +00:00
incremental-marking-job.cc testing: OverrideEmbedderStackStateScope should only affect implicit GCs 2022-03-09 14:29:34 +00:00
incremental-marking-job.h
incremental-marking.cc Revert "[heap] Only start incremental marking when V8 is not in GC VM state." 2022-03-25 16:07:53 +00:00
incremental-marking.h heap: Young gen cleanups 2022-02-14 16:42:58 +00:00
index-generator.cc [Heap]: Implement IndexGenerator for Jobs use cases. 2020-09-11 19:25:33 +00:00
index-generator.h [Heap]: Implement IndexGenerator for Jobs use cases. 2020-09-11 19:25:33 +00:00
invalidated-slots-inl.h [heap] Update InvalidatedSlotsFilter for map space compaction 2022-02-03 07:42:55 +00:00
invalidated-slots.cc [heap] Update InvalidatedSlotsFilter for map space compaction 2022-02-03 07:42:55 +00:00
invalidated-slots.h [heap] Update InvalidatedSlotsFilter for map space compaction 2022-02-03 07:42:55 +00:00
large-spaces.cc [heap] Add flag for disabling map space 2022-02-18 09:03:07 +00:00
large-spaces.h [heap] Introduce CLIENT_TO_SHARED remembered set 2021-12-10 07:29:41 +00:00
linear-allocation-area.h heap: Place LABs in IsolateData 2021-12-01 08:51:33 +00:00
list.h [heap] Make Heap::Contains const 2020-05-13 13:19:22 +00:00
local-factory-inl.h [strings] Share internalized and in-place internalizable strings 2021-10-08 22:43:38 +00:00
local-factory.cc [sandbox] Properly initialize LocalFactory::isolate_for_sandbox 2022-02-09 11:23:17 +00:00
local-factory.h [sandbox] Properly initialize LocalFactory::isolate_for_sandbox 2022-02-09 11:23:17 +00:00
local-heap-inl.h heap: Factor out AllocationResult from heap.h 2022-02-14 08:54:16 +00:00
local-heap.cc heap: Factor out AllocationResult from heap.h 2022-02-14 08:54:16 +00:00
local-heap.h Reland "[heap] Support multiple clients in shared GC" 2021-11-22 08:40:57 +00:00
mark-compact-inl.h heap: Remove build flag for MinorMC 2022-02-10 16:49:22 +00:00
mark-compact.cc heap: Report full GC cycles when sweeping finishes 2022-03-14 17:57:34 +00:00
mark-compact.h heap: Refactor sweeping finalization for young GC 2022-03-08 16:48:43 +00:00
marking-barrier-inl.h [heap] Skip values in marking barrier if heap sharedness mismatches 2021-11-12 19:55:07 +00:00
marking-barrier.cc [heap] Add flag for disabling map space 2022-02-18 09:03:07 +00:00
marking-barrier.h [heap] Skip values in marking barrier if heap sharedness mismatches 2021-11-12 19:55:07 +00:00
marking-visitor-inl.h Check instance type before initializing embedder data slots 2022-03-16 11:34:54 +00:00
marking-visitor.h [sandbox] Initialize the raw part of EmbedderDataSlots to zero 2022-03-07 12:54:33 +00:00
marking-worklist-inl.h Reland "cppgc-js,heap: Implement snapshots for embedder fields" 2022-01-14 20:02:33 +00:00
marking-worklist.cc cppgc-js, heap: Concurrently push references from v8 to Oilpan 2021-12-27 11:34:29 +00:00
marking-worklist.h Reland "cppgc-js,heap: Implement snapshots for embedder fields" 2022-01-14 20:02:33 +00:00
marking.cc
marking.h [heap] Fix regressions in the configuration without concurrent marking 2020-09-22 07:41:43 +00:00
memory-allocator.cc [heap] Improve accounting of PagedSpace::CommittedPhysicalMemory() 2022-03-09 18:28:21 +00:00
memory-allocator.h [heap] Improve accounting of PagedSpace::CommittedPhysicalMemory() 2022-03-09 18:28:21 +00:00
memory-chunk-inl.h
memory-chunk-layout.cc [heap] Fix alignment of large fixed double array. 2021-01-22 12:49:48 +00:00
memory-chunk-layout.h [heap] Improve accounting of PagedSpace::CommittedPhysicalMemory() 2022-03-09 18:28:21 +00:00
memory-chunk.cc [heap] Improve accounting of PagedSpace::CommittedPhysicalMemory() 2022-03-09 18:28:21 +00:00
memory-chunk.h [heap] Improve accounting of PagedSpace::CommittedPhysicalMemory() 2022-03-09 18:28:21 +00:00
memory-measurement-inl.h Make JSFinalizationRegistry::next_dirty weak 2021-11-30 18:43:38 +00:00
memory-measurement.cc [ext-code-space] Use cage-friendly HeapObject::map() in GC 2021-11-26 11:56:00 +00:00
memory-measurement.h Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
memory-reducer.cc [cleanup] Replace all remaining Min/Max uses with std::min/max 2020-11-24 17:32:01 +00:00
memory-reducer.h [cleanup][heap] Remove uses of DISALLOW_COPY_AND_ASSIGN 2020-12-02 01:07:49 +00:00
new-spaces-inl.h heap: Remove retry space from AllocationResult 2022-02-17 13:59:44 +00:00
new-spaces.cc heap: add DCHECKs to SemiSpace::EnsureCurrentCapacity 2022-03-21 10:31:19 +00:00
new-spaces.h [heap] Store total committed physical memory in SemiSpace 2022-03-10 14:00:05 +00:00
object-start-bitmap.h [heap] Add conservative stack scanning 2020-09-01 12:21:29 +00:00
object-stats.cc [ic] name Set/Define/Store property operations more consistently 2022-03-08 18:48:16 +00:00
object-stats.h [objects] Delete double field unboxing 2021-02-11 17:24:15 +00:00
objects-visiting-inl.h [sandbox] Implement GC for the external pointer table 2022-01-20 17:39:49 +00:00
objects-visiting.cc [cleanup] Use @doNotGenerateCppClass on fewer classes 2021-08-30 16:45:18 +00:00
objects-visiting.h [debug] Hold on to promises weakly from the debugger's promise stack. 2022-03-24 08:16:32 +00:00
OWNERS [owners] Same owners for src/heap/*factory* and src/objects. 2022-01-11 06:09:33 +00:00
paged-spaces-inl.h heap: Remove retry space from AllocationResult 2022-02-17 13:59:44 +00:00
paged-spaces.cc [heap] Improve accounting of PagedSpace::CommittedPhysicalMemory() 2022-03-09 18:28:21 +00:00
paged-spaces.h [heap] Improve accounting of PagedSpace::CommittedPhysicalMemory() 2022-03-09 18:28:21 +00:00
parallel-work-item.h Reland "Reland "[Heap] ScavengerCollector use Jobs."" 2020-09-30 16:29:54 +00:00
parked-scope.h Reland "[heap] Support multiple clients in shared GC" 2021-11-22 08:40:57 +00:00
progress-bar.h heap: Fix TSAN race when setting a flag after page initialization 2021-08-19 10:28:57 +00:00
read-only-heap-inl.h Reland^2 "[ptr-cage] Rename IsolateRoot to PtrComprCageBase" 2021-04-06 01:55:28 +00:00
read-only-heap.cc [snapshot] Add serializer option to reconstruct the RO object cache 2021-05-14 19:52:57 +00:00
read-only-heap.h [snapshot] Add serializer option to reconstruct the RO object cache 2021-05-14 19:52:57 +00:00
read-only-spaces.cc heap: Make sure no pages are left with promotion markings 2022-02-15 12:36:17 +00:00
read-only-spaces.h [ptr-cage] Share RO heap when sharing pointer compression cage 2021-05-04 21:30:15 +00:00
reference-summarizer.cc Add verifier for retaining paths in heap snapshots 2022-02-04 15:47:55 +00:00
reference-summarizer.h Add verifier for retaining paths in heap snapshots 2022-02-04 15:47:55 +00:00
remembered-set-inl.h [heap] Split MarkCompactCollector::PrepareRecordRelocSlot 2022-01-20 14:15:49 +00:00
remembered-set.h [heap] Split MarkCompactCollector::PrepareRecordRelocSlot 2022-01-20 14:15:49 +00:00
safepoint.cc Reland "[heap] Optimize time to reach global safepoint" 2022-01-12 10:35:25 +00:00
safepoint.h Reland "[heap] Optimize time to reach global safepoint" 2022-01-12 10:35:25 +00:00
scavenge-job.cc
scavenge-job.h
scavenger-inl.h [heap] Rename local-allocator.h to evacuation-allocator.h 2022-02-15 15:21:16 +00:00
scavenger.cc heap: Remove OneShotBarrier 2022-03-23 13:02:21 +00:00
scavenger.h heap: Remove OneShotBarrier 2022-03-23 13:02:21 +00:00
setup-heap-internal.cc Refactor ExternalObjects 2022-03-14 10:50:58 +00:00
slot-set.cc [heap] Split MarkCompactCollector::PrepareRecordRelocSlot 2022-01-20 14:15:49 +00:00
slot-set.h [heap] Split MarkCompactCollector::PrepareRecordRelocSlot 2022-01-20 14:15:49 +00:00
spaces-inl.h [heap] Add flag for disabling map space 2022-02-18 09:03:07 +00:00
spaces.cc [heap] Improve accounting of PagedSpace::CommittedPhysicalMemory() 2022-03-09 18:28:21 +00:00
spaces.h [heap] Improve accounting of PagedSpace::CommittedPhysicalMemory() 2022-03-09 18:28:21 +00:00
stress-marking-observer.cc
stress-marking-observer.h
stress-scavenge-observer.cc
stress-scavenge-observer.h
sweeper.cc heap: Add incremental mark/sweep step events 2022-03-24 10:05:16 +00:00
sweeper.h heap: Report full GC cycles when sweeping finishes 2022-03-14 17:57:34 +00:00
weak-object-worklists.cc heap: Remove unused Worklist 2021-12-02 12:43:01 +00:00
weak-object-worklists.h heap: Replace WeakObjects Worklist with ::heap::base::Worklist 2021-11-30 11:37:31 +00:00