mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Adding configuration option to execute GC after each opcode.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
parent
a057b77e26
commit
4c77cddec3
@ -170,4 +170,9 @@
|
||||
*/
|
||||
#define CONFIG_EXTENSION_MAX_ARGUMENTS_IN_FUNCTION 16
|
||||
|
||||
/**
|
||||
* Run GC after execution of each opcode
|
||||
*/
|
||||
// #define CONFIG_VM_RUN_GC_AFTER_EACH_OPCODE
|
||||
|
||||
#endif /* !CONFIG_H */
|
||||
|
||||
@ -439,6 +439,10 @@ run_int_loop (int_data_t *int_data)
|
||||
|
||||
completion = __opfuncs[curr->op_idx] (*curr, int_data);
|
||||
|
||||
#ifdef CONFIG_VM_RUN_GC_AFTER_EACH_OPCODE
|
||||
ecma_gc_run ();
|
||||
#endif /* CONFIG_VM_RUN_GC_AFTER_EACH_OPCODE */
|
||||
|
||||
#ifdef MEM_STATS
|
||||
interp_mem_stats_opcode_exit (int_data,
|
||||
opcode_pos,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user