summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authorMike Dalessio <mike.dalessio@gmail.com>2023-04-04 23:55:43 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-04-05 12:57:32 -0400
commit52e571fa72debcd764765775bd1b76ee87e36d2d (patch)
tree58e5de4f4a64709c50472e7070a0db67de795d20 /common.mk
parent533423ebe46ebfe3005198c12aa0d2c899c695ea (diff)
downloadruby-52e571fa72debcd764765775bd1b76ee87e36d2d.tar.gz
Ensure ruby_xfree won't segfault if called after vm_destruct
[Bug #19580] The real-world scenario motivating this change is libxml2's pthread code which uses `pthread_key_create` to set up a destructor that is called at thread exit to free thread-local storage. There is a small window of time -- after ruby_vm_destruct but before the process exits -- in which a pthread may exit and the destructor is called, leading to a segfault. Please note that this window of time may be relatively large if `atexit` is being used.
Diffstat (limited to 'common.mk')
0 files changed, 0 insertions, 0 deletions