mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Don't create objects during GC
If we crash during GC, allocating new objects in the segv handler can cause an infinite loop. This commit is to avoid creating new objects in the crash handler
This commit is contained in:
parent
26fcec5ae5
commit
459a9f82c9
1 changed files with 1 additions and 1 deletions
|
@ -1048,7 +1048,7 @@ rb_vm_bugreport(const void *ctx)
|
|||
fprintf(stderr, "-- Other runtime information "
|
||||
"-----------------------------------------------\n\n");
|
||||
}
|
||||
if (vm) {
|
||||
if (vm && !rb_during_gc()) {
|
||||
int i;
|
||||
VALUE name;
|
||||
long len;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue