Fix mem-stress-test to properly run gc before allocs (#4125)

JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai daniel.batyai@h-lab.eu
This commit is contained in:
Dániel Bátyai
2020-08-11 09:51:43 +02:00
committed by GitHub
parent 39fe04814e
commit 286e515f9f
2 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ extern inline void * JERRY_ATTR_HOT JERRY_ATTR_ALWAYS_INLINE
jmem_pools_alloc (size_t size) /**< size of the chunk */
{
#if ENABLED (JERRY_MEM_GC_BEFORE_EACH_ALLOC)
ecma_free_unused_memory (JMEM_PRESSURE_LOW);
ecma_gc_run ();
#endif /* ENABLED (JERRY_MEM_GC_BEFORE_EACH_ALLOC) */
#if ENABLED (JERRY_CPOINTER_32_BIT)