diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-12 13:55:39 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-12 15:15:08 -0700 |
commit | 9cd5441d28002768d9f492140757652548b86727 (patch) | |
tree | 0ad4ac8e4c56c64d0ced398cdbdd8a3878d7f862 /rjit.h | |
parent | bbd9221e46649cc0d620efe4542bb93ff89fcb47 (diff) |
RJIT: Implement --rjit-trace-exits
Diffstat (limited to 'rjit.h')
-rw-r--r-- | rjit.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -32,6 +32,8 @@ struct rjit_options { unsigned int exec_mem_size; // Collect RJIT statistics bool stats; + // Trace side exit locations + bool trace_exits; // Enable disasm of all JIT code bool dump_disasm; // [experimental] Do not start RJIT until RJIT.resume is called. @@ -69,6 +71,7 @@ extern void rb_rjit_collect_vm_usage_insn(int insn); extern bool rb_rjit_enabled; extern bool rb_rjit_stats_enabled; +extern bool rb_rjit_trace_exits_enabled; # else // USE_RJIT @@ -88,6 +91,7 @@ static inline void rb_rjit_tracing_invalidate_all(rb_event_flag_t new_iseq_event #define rb_rjit_enabled false #define rb_rjit_call_p false #define rb_rjit_stats_enabled false +#define rb_rjit_trace_exits_enabled false #define rb_rjit_call_threshold() UINT_MAX |