mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Initlialize ecma gc state on jerry init
JerryScript-DCO-1.0-Signed-off-by: François Baldassari francois@pebble.com
This commit is contained in:
parent
6e687fa6b7
commit
c82caa7f3c
@ -242,6 +242,9 @@ ecma_gc_init (void)
|
||||
{
|
||||
ecma_gc_objects_lists[ECMA_GC_COLOR_WHITE_GRAY] = NULL;
|
||||
ecma_gc_objects_lists[ECMA_GC_COLOR_BLACK] = NULL;
|
||||
ecma_gc_visited_flip_flag = false;
|
||||
ecma_gc_objects_number = 0;
|
||||
ecma_gc_new_objects_since_last_gc = 0;
|
||||
} /* ecma_gc_init */
|
||||
|
||||
/**
|
||||
|
||||
@ -34,6 +34,7 @@
|
||||
void
|
||||
ecma_init (void)
|
||||
{
|
||||
ecma_gc_init ();
|
||||
ecma_init_builtins ();
|
||||
ecma_lcache_init ();
|
||||
ecma_init_environment ();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user