diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2023-11-13 08:13:33 +0100 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2023-11-13 08:57:57 +0100 |
commit | a1887f4dc2e62455a605944468e59e647f698f1a (patch) | |
tree | ef21aeac4e599bb27938bf94b2da4e85a634d2df /gc.c | |
parent | 9ca41e999159096cb0872b4babbb94bf5d1af4ce (diff) | |
download | ruby-a1887f4dc2e62455a605944468e59e647f698f1a.tar.gz |
Revert "Fix crash caused by concurrent ObjectSpace.dump_all calls"
This reverts commit 9a62fd3cbae2ebb60e2f9cad782af1ad18db4319.
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -11935,11 +11935,7 @@ static void reachable_objects_from_callback(VALUE obj) { rb_ractor_t *cr = GET_RACTOR(); - struct gc_mark_func_data_struct *cur_mfd = cr->mfd; - cur_mfd->mark_func(obj, cr->mfd->data); - /* mark_func might give up the GVL, in which time some other thread might set - mfd. In that case, set it back to the right value for this thread. */ - cr->mfd = cur_mfd; + cr->mfd->mark_func(obj, cr->mfd->data); } void |