Do not allocate new objects at machine stack overflow

This commit is contained in:
Nobuyoshi Nakada 2025-04-24 11:01:42 +09:00
parent cb1ea54bbf
commit 5dc155351a
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465
Notes: git 2025-04-24 08:29:46 +00:00
3 changed files with 10 additions and 9 deletions

View file

@ -381,7 +381,7 @@ stack_check(rb_execution_context_t *ec)
if (!rb_ec_raised_p(ec, RAISED_STACKOVERFLOW) &&
rb_ec_stack_check(ec)) {
rb_ec_raised_set(ec, RAISED_STACKOVERFLOW);
rb_ec_stack_overflow(ec, FALSE);
rb_ec_stack_overflow(ec, 0);
}
}