summaryrefslogtreecommitdiff
path: root/ractor.c
diff options
context:
space:
mode:
Diffstat (limited to 'ractor.c')
-rw-r--r--ractor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ractor.c b/ractor.c
index 101dc41562..e8d2f7a69e 100644
--- a/ractor.c
+++ b/ractor.c
@@ -4217,9 +4217,12 @@ rb_ractor_require(VALUE feature)
rb_ractor_channel_close(ec, crr.ch);
if (crr.exception != Qundef) {
+ ractor_reset_belonging(crr.exception);
rb_exc_raise(crr.exception);
}
else {
+ RUBY_ASSERT(crr.result != Qundef);
+ ractor_reset_belonging(crr.result);
return crr.result;
}
}