diff --git a/src/heap/factory.cc b/src/heap/factory.cc index 5fa38daf03..fdfbaf682f 100644 --- a/src/heap/factory.cc +++ b/src/heap/factory.cc @@ -1844,7 +1844,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(),