summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorSutou Kouhei <kou@clear-code.com>2021-12-22 08:59:04 +0900
committerSutou Kouhei <kou@cozmixng.org>2021-12-22 11:10:20 +0900
commitc9396a35203fb99e8e6115b36042b2bec116b088 (patch)
treec580dbd40b0ec2157f3fe8ef5afda13c43df3282 /vm.c
parentfff9b45fa949f72b5cc6971b54eb3aa384d1d022 (diff)
Show the target Proc on Ractor::IsolationError
It's useful for debug.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5320
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 287fe2547d..8ce8b279d4 100644
--- a/vm.c
+++ b/vm.c
@@ -1182,7 +1182,9 @@ rb_proc_ractor_make_shareable(VALUE self)
if (proc->block.type != block_type_iseq) rb_raise(rb_eRuntimeError, "not supported yet");
if (!rb_ractor_shareable_p(vm_block_self(&proc->block))) {
- rb_raise(rb_eRactorIsolationError, "Proc's self is not shareable");
+ rb_raise(rb_eRactorIsolationError,
+ "Proc's self is not shareable: %" PRIsVALUE,
+ self);
}
VALUE read_only_variables = Qfalse;