diff options
author | Kenta Murata <[email protected]> | 2020-12-20 00:40:47 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-20 00:40:47 +0900 |
commit | de80b928910b7ca785725382cec53cb27f1d65ed (patch) | |
tree | 2d2c327c2865e047e6d5e4402488a3eac54b263a /ext/pathname/pathname.c | |
parent | d62414b48fbb944cc9e4442ad7d04d40a27fa4e9 (diff) |
[pathname] Make Pathname Ractor safe (#3940)
Notes
Notes:
Merged-By: mrkn <[email protected]>
Diffstat (limited to 'ext/pathname/pathname.c')
-rw-r--r-- | ext/pathname/pathname.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c index f71cec1b25..6f4c8d23b5 100644 --- a/ext/pathname/pathname.c +++ b/ext/pathname/pathname.c @@ -1512,6 +1512,10 @@ path_f_pathname(VALUE self, VALUE str) void Init_pathname(void) { +#ifdef HAVE_RB_EXT_RACTOR_SAFE + rb_ext_ractor_safe(true); +#endif + InitVM(pathname); rb_cPathname = rb_define_class("Pathname", rb_cObject); |