summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2024-03-26 11:37:21 -0400
committerPeter Zhu <[email protected]>2024-03-27 09:39:23 -0400
commitf14e52c8c45f1288537ff38c153096d095b5ad20 (patch)
treec953d6b7c75899748d4872177cc49d8ddcafad56 /debug.c
parent1d99fe430aff34a90544d23edbd707f6f240dafe (diff)
Fix setting GC stress at boot when objspace not available
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug.c b/debug.c
index 546ffc440f..4717a0bc9c 100644
--- a/debug.c
+++ b/debug.c
@@ -226,7 +226,7 @@ ruby_env_debug_option(const char *str, int len, void *arg)
}
if (NAME_MATCH("gc_stress")) {
- rb_gc_stress_set(Qtrue);
+ rb_gc_initial_stress_set(Qtrue);
return 1;
}
SET_WHEN("core", ruby_enable_coredump, 1);