diff options
author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2023-11-28 15:04:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-28 20:04:33 +0000 |
commit | 6310522a9a33c19e963e56a8f87388d802525937 (patch) | |
tree | a5647994e2ce78e8fc5a1950991b505959d541d5 /yjit | |
parent | 982641939cf709d22dbc060df57cbed31acd3b97 (diff) | |
download | ruby-6310522a9a33c19e963e56a8f87388d802525937.tar.gz |
YJIT: reduce default exec-mem-size to 64MiB (#9054)
Diffstat (limited to 'yjit')
-rw-r--r-- | yjit/src/options.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yjit/src/options.rs b/yjit/src/options.rs index ceeeb66e86..1cdccac523 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: 128 * 1024 * 1024, + exec_mem_size: 64 * 1024 * 1024, no_type_prop: false, max_versions: 4, num_temp_regs: 5, @@ -104,7 +104,7 @@ static YJIT_OPTIONS: [(&str, &str); 8] = [ ("--yjit-stats", "Enable collecting YJIT statistics"), ("--yjit-trace-exits", "Record Ruby source location when exiting from generated code"), ("--yjit-trace-exits-sample-rate", "Trace exit locations only every Nth occurrence"), - ("--yjit-exec-mem-size=num", "Size of executable memory block in MiB (default: 128)"), + ("--yjit-exec-mem-size=num", "Size of executable memory block in MiB (default: 64)"), ("--yjit-code-gc", "Run code GC when the code size reaches the limit"), ("--yjit-call-threshold=num", "Number of calls to trigger JIT"), ("--yjit-cold-threshold=num", "Global call after which ISEQs not compiled (default: 200K)"), |