diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-10-21 13:53:46 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-10-21 16:15:22 +0900 |
commit | b59077eecf912a16efefc0256f6e94a000ce3888 (patch) | |
tree | a1e4c2c6326c7576bab66f724075905c6151ffa5 /regint.h | |
parent | 4640c4ea8a693a9a8468251135afff837904a3a5 (diff) |
Ractor-safe rb_objspace_reachable_objects_from
rb_objspace_reachable_objects_from(obj) is used to traverse all
reachable objects from obj. This function modify objspace but it
is not ractor-safe (thread-safe). This patch fix the problem.
Strategy:
(1) call GC mark process during_gc
(2) call Ractor-local custom mark func when !during_gc
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3680
Diffstat (limited to 'regint.h')
0 files changed, 0 insertions, 0 deletions