From 028f1887c2bfa50dcfc1b623470d6ab1b880fdde Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Mon, 31 May 2021 22:00:14 -0700 Subject: 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 --- mjit_worker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mjit_worker.c') 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. -- cgit v1.2.3