diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-10-29 21:40:11 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-10-29 21:40:11 +0900 |
commit | 5e52fd4bd14a668dd7d85a67f824f2667c6d45ea (patch) | |
tree | 8a8316a982744cc7b5e2651dfde8456fe9cb9dfc /vm.c | |
parent | ec2e04c90d96541502c9b96e66900b4bb01676bb (diff) |
Preserve the encoding of message from outer local variable
In the case of read-only but refering an unshareable object.
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1037,7 +1037,7 @@ env_copy(const VALUE *src_ep, VALUE read_only_variables) if (!rb_ractor_shareable_p(v)) { rb_raise(rb_eRactorIsolationError, "can not make shareable Proc because it can refer unshareable object %" - PRIsVALUE" from variable `%s'", rb_inspect(v), rb_id2name(id)); + "+" PRIsVALUE " from variable `%" PRIsVALUE "'", v, rb_id2str(id)); } env_body[j] = v; rb_ary_delete_at(read_only_variables, i); |