mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: cherry-pick 3704cf78f471 from v8 (#35774)
* chore: cherry-pick 3704cf78f471 from v8 * chore: update patches Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
This commit is contained in:
@@ -7,3 +7,4 @@ do_not_export_private_v8_symbols_on_windows.patch
|
||||
fix_build_deprecated_attribute_for_older_msvc_versions.patch
|
||||
fix_disable_implies_dcheck_for_node_stream_array_buffers.patch
|
||||
revert_fix_cppgc_removed_deleted_cstors_in_cppheapcreateparams.patch
|
||||
cherry-pick-3704cf78f471.patch
|
||||
|
||||
33
patches/v8/cherry-pick-3704cf78f471.patch
Normal file
33
patches/v8/cherry-pick-3704cf78f471.patch
Normal file
@@ -0,0 +1,33 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Dominik=20Inf=C3=BChr?= <dinfuehr@chromium.org>
|
||||
Date: Thu, 8 Sep 2022 16:27:54 +0200
|
||||
Subject: Merged: [heap] Fix aborting compaction with map space compaction
|
||||
|
||||
Revision: 3ec02e314cfca04e7457a60363af98b9c9957b16
|
||||
|
||||
BUG=chromium:1359294,v8:12578
|
||||
NOTRY=true
|
||||
NOPRESUBMIT=true
|
||||
NOTREECHECKS=true
|
||||
R=mlippautz@chromium.org
|
||||
|
||||
Change-Id: I04093833a1bfef4269eb578fa5a002872015199e
|
||||
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3882977
|
||||
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
|
||||
Cr-Commit-Position: refs/branch-heads/10.4@{#43}
|
||||
Cr-Branched-From: b1413ed7c71ababe05d590de4b5c4ed97b68693e-refs/heads/10.4.132@{#1}
|
||||
Cr-Branched-From: 9d0a09368569234a1d1094975e2e92591922cd08-refs/heads/main@{#80972}
|
||||
|
||||
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc
|
||||
index ef0b67ca2b62745e3d9102a8c73b5841d782e21b..1fef50f691e9dfd44b30cf27e6cdf389f5d89d45 100644
|
||||
--- a/src/heap/mark-compact.cc
|
||||
+++ b/src/heap/mark-compact.cc
|
||||
@@ -1943,7 +1943,7 @@ class EvacuateRecordOnlyVisitor final : public HeapObjectVisitor {
|
||||
// Instead of calling object.IterateBodyFast(cage_base(), &visitor) here
|
||||
// we can shortcut and use the precomputed size value passed to the visitor.
|
||||
DCHECK_EQ(object.SizeFromMap(map), size);
|
||||
- object.IterateBodyFast(map, size, &visitor);
|
||||
+ object.IterateFast(map, size, &visitor);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user