Changing dynamic sized (syntactically) array to constant-sized array in ecma_gc_run.

This commit is contained in:
Ruben Ayrapetyan committed 2014-12-17 21:29:45 +03:00
1 parent 001f262590
commit c9b73da82d
1 file changed
+2 -1
+2 -1
View File
@@ -581,7 +581,8 @@ ecma_gc_run (ecma_gc_gen_t max_gen_to_collect) /**< maximum generation to run co
}
}
ecma_object_t *gen_last_obj_p[ max_gen_to_collect + 1 ];
JERRY_ASSERT (max_gen_to_collect <= ECMA_GC_GEN_COUNT);
ecma_object_t *gen_last_obj_p[ ECMA_GC_GEN_COUNT ];
#ifndef JERRY_NDEBUG
__memset (gen_last_obj_p, 0, sizeof (gen_last_obj_p));
#endif /* !JERRY_NDEBUG */