summaryrefslogtreecommitdiff
path: root/yjit.h
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maximechevalierb@gmail.com>2021-05-26 15:25:50 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:35 -0400
commitb415ceb92e464011a9326c9cb5e15a84c39da330 (patch)
tree5b42a1b39408a81d60215929b4f6e138e3ab57b8 /yjit.h
parent764740c6615292dc994707b964c135871149fb2b (diff)
downloadruby-b415ceb92e464011a9326c9cb5e15a84c39da330.tar.gz
Increase default YJIT call threshold to 10. Add exec mem size arg. (#52)
Diffstat (limited to 'yjit.h')
-rw-r--r--yjit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/yjit.h b/yjit.h
index 3359a51435..1969ced260 100644
--- a/yjit.h
+++ b/yjit.h
@@ -33,6 +33,9 @@ struct rb_yjit_options {
// Enable compilation with YJIT
bool yjit_enabled;
+ // Size of the executable memory block to allocate in MiB
+ unsigned exec_mem_size;
+
// Number of method calls after which to start generating code
// Threshold==1 means compile on first execution
unsigned call_threshold;