summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS.md1
-rw-r--r--mjit.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS.md b/NEWS.md
index fedc62472f..65f727bc67 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -445,6 +445,7 @@ The following deprecated APIs are removed.
* As a result, Microsoft Visual Studio (MSWIN) is no longer supported.
* MinGW is no longer supported. [[Feature #18824]]
* Rename `--mjit-min-calls` to `--mjit-call-threshold`.
+* Change default `--mjit-max-cache` back from 10000 to 100.
## Static analysis
diff --git a/mjit.c b/mjit.c
index 1350307652..31ee892b61 100644
--- a/mjit.c
+++ b/mjit.c
@@ -1626,7 +1626,7 @@ system_tmpdir(void)
// Minimum value for JIT cache size.
#define MIN_CACHE_SIZE 10
// Default permitted number of units with a JIT code kept in memory.
-#define DEFAULT_MAX_CACHE_SIZE 10000
+#define DEFAULT_MAX_CACHE_SIZE 100
// A default threshold used to add iseq to JIT.
#define DEFAULT_CALL_THRESHOLD 10000