summaryrefslogtreecommitdiff
path: root/yjit/src
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>2024-02-04 00:36:34 -0500
committerGitHub <noreply@github.com>2024-02-04 05:36:34 +0000
commitba16b340981942eda82d6328800b8098c452c0ca (patch)
tree955c3f5fc5ea55e2930e8bfe5857835bc4e488f9 /yjit/src
parentce6863a0cf971e0c0328e3fc85b10b6de36ecbad (diff)
YJIT: reduce default exec mem size to 48MiB (#9692)
* YJIT: reduce default exec mem size to 48MiB based Based on user feedback from @jhawthorn and others. Better for small and memory-constrained deployments. NOTE: This commit should be included in the next Ruby 3.3.x point release. @xrxr should we tag someone specific? * YJIT: Update yjit.md about mem size (#9687) --------- Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
Diffstat (limited to 'yjit/src')
-rw-r--r--yjit/src/options.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/yjit/src/options.rs b/yjit/src/options.rs
index 72db513030..5a60bc8f49 100644
--- a/yjit/src/options.rs
+++ b/yjit/src/options.rs
@@ -81,7 +81,7 @@ pub struct Options {
// Initialize the options to default values
pub static mut OPTIONS: Options = Options {
- exec_mem_size: 64 * 1024 * 1024,
+ exec_mem_size: 48 * 1024 * 1024,
no_type_prop: false,
max_versions: 4,
num_temp_regs: 5,
@@ -101,7 +101,7 @@ pub static mut OPTIONS: Options = Options {
/// YJIT option descriptions for `ruby --help`.
static YJIT_OPTIONS: [(&str, &str); 9] = [
- ("--yjit-exec-mem-size=num", "Size of executable memory block in MiB (default: 64)"),
+ ("--yjit-exec-mem-size=num", "Size of executable memory block in MiB (default: 48)"),
("--yjit-call-threshold=num", "Number of calls to trigger JIT"),
("--yjit-cold-threshold=num", "Global calls after which ISEQs not compiled (default: 200K)"),
("--yjit-stats", "Enable collecting YJIT statistics"),