Skip to content

Commit

Permalink
Cherry pick PR #3370: Apply v8 fix on heap/scavenger.cc (#3383)
Browse files Browse the repository at this point in the history
Refer to the original PR: #3370

The original fix can be found on
https://chromium-review.googlesource.com/c/v8/v8/+/2555009

Test-On-Device: true

b/299160533

Co-authored-by: Colin Liang <[email protected]>
  • Loading branch information
cobalt-github-releaser-bot and zhongqiliang committed May 30, 2024
1 parent 1ae4b57 commit 12354d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/v8/src/heap/scavenger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ void Scavenger::AddPageToSweeperIfNecessary(MemoryChunk* page) {
void Scavenger::ScavengePage(MemoryChunk* page) {
CodePageMemoryModificationScope memory_modification_scope(page);

if (page->slot_set<OLD_TO_NEW, AccessMode::NON_ATOMIC>() != nullptr) {
if (page->slot_set<OLD_TO_NEW, AccessMode::ATOMIC>() != nullptr) {
InvalidatedSlotsFilter filter = InvalidatedSlotsFilter::OldToNew(page);
RememberedSet<OLD_TO_NEW>::IterateAndTrackEmptyBuckets(
page,
Expand Down

0 comments on commit 12354d4

Please sign in to comment.