summaryrefslogtreecommitdiff
path: root/ractor.c
diff options
authorJohn Hawthorn <[email protected]>2025-06-11 13:35:28 -0700
committerJohn Hawthorn <[email protected]>2025-06-12 13:13:55 -0700
commitef9301a6b747035a113f3c9dfb805214e9285026 (patch)
tree008526bd9c473c2e356d1b6f5b3850cdaf6ca5b6 /ractor.c
parentb28f3443122c4e5461877d704618c752e56ca8b0 (diff)
Ensure crr->feature is an fstring
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13531
Diffstat (limited to 'ractor.c')
-rw-r--r--ractor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ractor.c b/ractor.c
index 694cae5a00..2b9d5b3d5b 100644
--- a/ractor.c
+++ b/ractor.c
@@ -2339,8 +2339,8 @@ rb_ractor_require(VALUE feature)
VALUE crr_obj = TypedData_Make_Struct(0, struct cross_ractor_require, &cross_ractor_require_data_type, crr);
FL_SET_RAW(crr_obj, RUBY_FL_SHAREABLE);
- // TODO: make feature shareable
- crr->feature = feature;
+ // Convert feature to proper file path and make it shareable as fstring
+ crr->feature = rb_fstring(FilePathValue(feature));
crr->port = ractor_port_new(GET_RACTOR());
crr->result = Qundef;
crr->exception = Qundef;