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 /tool/enc-emoji-citrus-gen.rb | |
parent | 3d2eb7c9a6d473411bf2f08dcf9bbdbb59ea93cb (diff) | |
download | ruby-2ccf6e539458ef5c9f7a2d68163089d1d38e47f7.tar.gz |
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.
Diffstat (limited to 'tool/enc-emoji-citrus-gen.rb')
0 files changed, 0 insertions, 0 deletions