Commit 14a5a6ad authored by Dominik Inführ's avatar Dominik Inführ Committed by Commit Bot

[heap] LocalAllocationBuffer needs to use CreateFillerObjectAtBackground

LocalAllocationBuffer is used on the background thread so it needs
to use CreateFillerObjectAtBackground for creating filler objects.

Bug: v8:10315
Change-Id: Ifc22d87e1e835cfdd65d82fc79b20ee74b2c87b1
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2336795Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#69224}
parent 5c849290
...@@ -314,10 +314,10 @@ LinearAllocationArea LocalAllocationBuffer::CloseAndMakeIterable() { ...@@ -314,10 +314,10 @@ LinearAllocationArea LocalAllocationBuffer::CloseAndMakeIterable() {
void LocalAllocationBuffer::MakeIterable() { void LocalAllocationBuffer::MakeIterable() {
if (IsValid()) { if (IsValid()) {
heap_->CreateFillerObjectAt( heap_->CreateFillerObjectAtBackground(
allocation_info_.top(), allocation_info_.top(),
static_cast<int>(allocation_info_.limit() - allocation_info_.top()), static_cast<int>(allocation_info_.limit() - allocation_info_.top()),
ClearRecordedSlots::kNo); ClearFreedMemoryMode::kDontClearFreedMemory);
} }
} }
...@@ -326,10 +326,10 @@ LocalAllocationBuffer::LocalAllocationBuffer( ...@@ -326,10 +326,10 @@ LocalAllocationBuffer::LocalAllocationBuffer(
: heap_(heap), : heap_(heap),
allocation_info_(allocation_info) { allocation_info_(allocation_info) {
if (IsValid()) { if (IsValid()) {
heap_->CreateFillerObjectAt( heap_->CreateFillerObjectAtBackground(
allocation_info_.top(), allocation_info_.top(),
static_cast<int>(allocation_info_.limit() - allocation_info_.top()), static_cast<int>(allocation_info_.limit() - allocation_info_.top()),
ClearRecordedSlots::kNo); ClearFreedMemoryMode::kDontClearFreedMemory);
} }
} }
......
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