[Heap] Allocate descriptor array in young
This hopefully fix the regression test from c693e005a7
Bug: v8:1004766
Change-Id: If3c554070af6b795e4b3f99cd592a62453028874
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1809363
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Commit-Queue: Victor Gomes <victorgomes@google.com>
Cr-Commit-Position: refs/heads/master@{#63858}
This commit is contained in:
parent
3b808dee68
commit
0d6aa842e6
@ -1845,7 +1845,7 @@ Handle<DescriptorArray> Factory::NewDescriptorArray(int number_of_descriptors,
|
||||
DCHECK_LT(0, number_of_all_descriptors);
|
||||
int size = DescriptorArray::SizeFor(number_of_all_descriptors);
|
||||
HeapObject obj = isolate()->heap()->AllocateRawWith<Heap::kRetryOrFail>(
|
||||
size, AllocationType::kOld);
|
||||
size, AllocationType::kYoung);
|
||||
obj.set_map_after_allocation(*descriptor_array_map(), SKIP_WRITE_BARRIER);
|
||||
DescriptorArray array = DescriptorArray::cast(obj);
|
||||
array.Initialize(*empty_enum_cache(), *undefined_value(),
|
||||
|
Loading…
Reference in New Issue
Block a user