summaryrefslogtreecommitdiff
path: root/mjit_worker.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2021-05-31 22:00:14 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2021-05-31 22:01:04 -0700
commit028f1887c2bfa50dcfc1b623470d6ab1b880fdde (patch)
tree83a43cc96200796c267da0e80fbe8e32ed4081e8 /mjit_worker.c
parent2209e152c0ec2c0548c22b2b14e52007b74a9efb (diff)
Change the default --jit-max-cache to 10000
This is useful for large applications like Rails. https://k0kubun.medium.com/ruby-3-jit-can-make-rails-faster-756310f235a
Diffstat (limited to 'mjit_worker.c')
-rw-r--r--mjit_worker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mjit_worker.c b/mjit_worker.c
index 306c8cbc71..6d9ce697e0 100644
--- a/mjit_worker.c
+++ b/mjit_worker.c
@@ -1396,9 +1396,9 @@ unload_units(void)
void
mjit_worker(void)
{
- // Allow only `max_cache_size / 10` times (default: 10) of compaction.
+ // Allow only `max_cache_size / 100` times (default: 100) of compaction.
// Note: GC of compacted code has not been implemented yet.
- int max_compact_size = mjit_opts.max_cache_size / 10;
+ int max_compact_size = mjit_opts.max_cache_size / 100;
if (max_compact_size < 10) max_compact_size = 10;
// Run unload_units after it's requested `max_cache_size / 10` (default: 10) times.