summaryrefslogtreecommitdiff
path: root/yjit_iface.h
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-06-23 21:19:10 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:36 -0400
commit6883aeda77c09c4982080f968491eacbc43a47e1 (patch)
treed70df3df76641a239562e71dcf3fca1b2319a508 /yjit_iface.h
parent71560f8804d30509b5d0be6547469b089c63ab9a (diff)
Add a macro for tweaking default call threshold
For use in development for writing `test.rb` and running with `make run`.
Diffstat (limited to 'yjit_iface.h')
-rw-r--r--yjit_iface.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/yjit_iface.h b/yjit_iface.h
index c1f28a5e65..f0980eaf3f 100644
--- a/yjit_iface.h
+++ b/yjit_iface.h
@@ -11,6 +11,10 @@
#include "vm_core.h"
#include "yjit_core.h"
+#ifndef YJIT_DEFAULT_CALL_THRESHOLD
+# define YJIT_DEFAULT_CALL_THRESHOLD 10
+#endif
+
#if RUBY_DEBUG
#define YJIT_DECLARE_COUNTERS(...) struct rb_yjit_runtime_counters { \
@@ -112,4 +116,4 @@ const VALUE *rb_yjit_count_side_exit_op(const VALUE *exit_pc);
void yjit_unlink_method_lookup_dependency(block_t *block);
void yjit_block_assumptions_free(block_t *block);
-#endif // #ifndef YJIT_IFACE_
+#endif // #ifndef YJIT_IFACE_H