Skip to content

Commit c74ece5

Browse files
authored
Merge pull request #58 from bnoordhuis/no-marking
Disable incremental and concurrent marking
2 parents 751b6c8 + 07f3beb commit c74ece5

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

libexec/extract-node

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ cd "${src}/node-v${version}"
3535
patch -p1 < "${top}"/patch/v8-no-assert-trivially-copyable.patch
3636
patch -p1 < "${top}"/patch/v8-disable-madv-dontfork.patch
3737
patch -p1 < "${top}"/patch/v8-disable-pkey.patch
38+
patch -p1 < "${top}"/patch/v8-disable-marking.patch
3839

3940
# TODO: the following still fails on py3 so the above one forcing py2 is needed
4041
# patch -p1 < ../../py3-genv8constants.patch

patch/v8-disable-marking.patch

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
diff --git a/deps/v8/src/flags/flag-definitions.h b/deps/v8/src/flags/flag-definitions.h
2+
index 0d50ac1522..2854768562 100644
3+
--- a/deps/v8/src/flags/flag-definitions.h
4+
+++ b/deps/v8/src/flags/flag-definitions.h
5+
@@ -1764,7 +1764,7 @@ DEFINE_BOOL(minor_ms_trace_fragmentation, false,
6+
DEFINE_BOOL(trace_evacuation, false, "report evacuation statistics")
7+
DEFINE_BOOL(trace_mutator_utilization, false,
8+
"print mutator utilization, allocation speed, gc speed")
9+
-DEFINE_BOOL(incremental_marking, true, "use incremental marking")
10+
+DEFINE_BOOL(incremental_marking, false, "use incremental marking")
11+
DEFINE_BOOL(incremental_marking_bailout_when_ahead_of_schedule, true,
12+
"bails out of incremental marking when ahead of schedule")
13+
DEFINE_BOOL(incremental_marking_task, true, "use tasks for incremental marking")
14+
@@ -1794,7 +1794,7 @@ DEFINE_IMPLICATION(cppgc_young_generation, minor_ms)
15+
DEFINE_NEG_IMPLICATION(cppgc_young_generation, reclaim_unmodified_wrappers)
16+
DEFINE_BOOL(optimize_gc_for_battery, false, "optimize GC for battery")
17+
#if defined(V8_ATOMIC_OBJECT_FIELD_WRITES)
18+
-DEFINE_BOOL(concurrent_marking, true, "use concurrent marking")
19+
+DEFINE_BOOL(concurrent_marking, false, "use concurrent marking")
20+
#else
21+
// Concurrent marking cannot be used without atomic object field loads and
22+
// stores.

0 commit comments

Comments
 (0)