diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2022-12-16 09:06:26 -0500 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2022-12-16 10:01:53 -0500 |
| commit | 2ccf6e539458ef5c9f7a2d68163089d1d38e47f7 (patch) | |
| tree | ee480a4b25cb5e47860542ff5545211c1fd50a3b /include/ruby | |
| parent | 3d2eb7c9a6d473411bf2f08dcf9bbdbb59ea93cb (diff) | |
Don't allow allocating memory during GC
Allocating memory (xmalloc and xrealloc) during GC could cause GC to
trigger, which would crash with `[BUG] during_gc != 0`. This is an
intermittent bug which could be hard to debug.
This commit changes it so that any memory allocation during GC will
emit a warning. When debug flags are enabled it will also cause a crash.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6921
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions
