Commit f1cf0733 authored by Hannes Payer's avatar Hannes Payer Committed by Commit Bot

[heap] Unprotect huge free list nodes for code allocation.

Bug: chromium:774108
Change-Id: I640a4f0f17244ee77fa5480ec9faa773310b9caf
Reviewed-on: https://chromium-review.googlesource.com/958907Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Hannes Payer <hpayer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51880}
parent b0897491
......@@ -2736,6 +2736,11 @@ FreeSpace* FreeListCategory::SearchForNodeInList(size_t minimum_size,
set_top(cur_node->next());
}
if (prev_non_evac_node != nullptr) {
MemoryChunk* chunk =
MemoryChunk::FromAddress(prev_non_evac_node->address());
if (chunk->owner()->identity() == CODE_SPACE) {
chunk->heap()->UnprotectAndRegisterMemoryChunk(chunk);
}
prev_non_evac_node->set_next(cur_node->next());
}
*node_size = size;
......
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