Adjust fast array growth (#4868)

Since we allow large buffer allocations during array constructor we could extend this behavior to [[Set]] operation as well.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik robert.fancsik@h-lab.eu
This commit is contained in:
Robert Fancsik
2021-12-15 10:35:28 +01:00
committed by GitHub
parent dbba83fe40
commit 7e0aa086ec
2 changed files with 4 additions and 24 deletions
@@ -60,7 +60,7 @@
/**
* Maximum number of array holes in a fast access mode array
*/
#define ECMA_FAST_ARRAY_MAX_HOLE_COUNT (1 << 24)
#define ECMA_FAST_ARRAY_MAX_HOLE_COUNT (1 << 16)
ecma_object_t *ecma_op_new_array_object (uint32_t length);