diff options
author | Sutou Kouhei <kou@clear-code.com> | 2021-12-22 08:59:04 +0900 |
---|---|---|
committer | Sutou Kouhei <kou@cozmixng.org> | 2021-12-22 11:10:20 +0900 |
commit | c9396a35203fb99e8e6115b36042b2bec116b088 (patch) | |
tree | c580dbd40b0ec2157f3fe8ef5afda13c43df3282 /vm.c | |
parent | fff9b45fa949f72b5cc6971b54eb3aa384d1d022 (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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |