summaryrefslogtreecommitdiff
path: root/shape.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-12-16 09:06:26 -0500
committerPeter Zhu <peter@peterzhu.ca>2022-12-16 10:01:53 -0500
commit2ccf6e539458ef5c9f7a2d68163089d1d38e47f7 (patch)
treeee480a4b25cb5e47860542ff5545211c1fd50a3b /shape.c
parent3d2eb7c9a6d473411bf2f08dcf9bbdbb59ea93cb (diff)
downloadruby-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 'shape.c')
0 files changed, 0 insertions, 0 deletions