From 0d6aa842e602956e088f70ab083e231a60008337 Mon Sep 17 00:00:00 2001 From: Victor Gomes Date: Wed, 18 Sep 2019 09:51:29 +0200 Subject: [PATCH] [Heap] Allocate descriptor array in young This hopefully fix the regression test from c693e005a7a156a9d88cf95659eb255838ee895c Bug: v8:1004766 Change-Id: If3c554070af6b795e4b3f99cd592a62453028874 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1809363 Reviewed-by: Ulan Degenbaev Commit-Queue: Victor Gomes Cr-Commit-Position: refs/heads/master@{#63858} --- src/heap/factory.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/heap/factory.cc b/src/heap/factory.cc index 939719c67d..7d2f7e39b6 100644 --- a/src/heap/factory.cc +++ b/src/heap/factory.cc @@ -1845,7 +1845,7 @@ Handle 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( - 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(),