Commit 308db3e8 authored by Hannes Payer's avatar Hannes Payer Committed by Commit Bot

[heap] Clear current_capacity_ when uncommitting SemiSpace.

Bug: chromium:1054771
Change-Id: I58a49461723d8444fca8c2a3b0f3e75367604c76
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2562257Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Hannes Payer <hpayer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71437}
parent 3de12329
......@@ -136,6 +136,7 @@ bool SemiSpace::Uncommit() {
heap()->memory_allocator()->Free<MemoryAllocator::kPooledAndQueue>(chunk);
}
current_page_ = nullptr;
current_capacity_ = 0;
AccountUncommitted(target_capacity_);
heap()->memory_allocator()->unmapper()->FreeQueuedChunks();
return true;
......
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