aboutsummaryrefslogtreecommitdiffstats
path: root/yjit_codegen.c
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_codegen.c
parent764740c6615292dc994707b964c135871149fb2b (diff)
downloadruby-b415ceb92e464011a9326c9cb5e15a84c39da330.tar.gz
Increase default YJIT call threshold to 10. Add exec mem size arg. (#52)
Diffstat (limited to 'yjit_codegen.c')
-rw-r--r--yjit_codegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit_codegen.c b/yjit_codegen.c
index 791095efb7..6b32b4e4e7 100644
--- a/yjit_codegen.c
+++ b/yjit_codegen.c
@@ -2792,7 +2792,7 @@ void
yjit_init_codegen(void)
{
// Initialize the code blocks
- uint32_t mem_size = 128 * 1024 * 1024;
+ uint32_t mem_size = rb_yjit_opts.exec_mem_size * 1024 * 1024;
uint8_t *mem_block = alloc_exec_mem(mem_size);
cb = &block;