mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Do not allocate new objects at machine stack overflow
This commit is contained in:
parent
cb1ea54bbf
commit
5dc155351a
Notes:
git
2025-04-24 08:29:46 +00:00
3 changed files with 10 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue