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:
@@ -170,4 +170,9 @@
|
|||||||
*/
|
*/
|
||||||
#define CONFIG_EXTENSION_MAX_ARGUMENTS_IN_FUNCTION 16
|
#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 */
|
#endif /* !CONFIG_H */
|
||||||
|
|||||||
@@ -439,6 +439,10 @@ run_int_loop (int_data_t *int_data)
|
|||||||
|
|
||||||
completion = __opfuncs[curr->op_idx] (*curr, 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
|
#ifdef MEM_STATS
|
||||||
interp_mem_stats_opcode_exit (int_data,
|
interp_mem_stats_opcode_exit (int_data,
|
||||||
opcode_pos,
|
opcode_pos,
|
||||||
|
|||||||
Reference in New Issue
Block a user