Commit 1c94e7a9 authored by Igor Sheludko's avatar Igor Sheludko Committed by V8 LUCI CQ

[rwx][mac] Add missing CodePageHeaderModificationScopes

Bug: v8:12797
Change-Id: I93c786ac4b4a9b44d17f20e8d79544c4718d8fe6
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3637790Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Auto-Submit: Igor Sheludko <ishell@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80448}
parent d5245542
......@@ -960,6 +960,9 @@ void MarkCompactCollector::CollectEvacuationCandidates(PagedSpace* space) {
void MarkCompactCollector::AbortCompaction() {
if (compacting_) {
CodePageHeaderModificationScope rwx_write_scope(
"Changing Code page flags and remembered sets require write access "
"to the page header");
RememberedSet<OLD_TO_OLD>::ClearAll(heap());
if (V8_EXTERNAL_CODE_SPACE_BOOL) {
RememberedSet<OLD_TO_CODE>::ClearAll(heap());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment