зеркало из https://github.com/github/ruby.git
Fix bootstrap-test error in previous commit
This commit is contained in:
Родитель
9c8f0a34df
Коммит
ff2276ef8c
|
@ -2509,7 +2509,7 @@ rb_const_get_0(VALUE klass, ID id, int exclude, int recurse, int visibility)
|
||||||
if (c != Qundef) {
|
if (c != Qundef) {
|
||||||
if (UNLIKELY(!rb_ractor_main_p())) {
|
if (UNLIKELY(!rb_ractor_main_p())) {
|
||||||
if (!rb_ractor_shareable_p(c)) {
|
if (!rb_ractor_shareable_p(c)) {
|
||||||
rb_raise(rb_eNameError, "can not access non-sharable objects in constant %"PRIsVALUE"::%s by non-main Ractor.", rb_class_path(klass), rb_id2name(id));
|
rb_raise(rb_eNameError, "can not access non-shareable objects in constant %"PRIsVALUE"::%s by non-main Ractor.", rb_class_path(klass), rb_id2name(id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return c;
|
return c;
|
||||||
|
|
|
@ -1003,7 +1003,7 @@ vm_get_ev_const(rb_execution_context_t *ec, VALUE orig_klass, ID id, bool allow_
|
||||||
if (UNLIKELY(!rb_ractor_main_p())) {
|
if (UNLIKELY(!rb_ractor_main_p())) {
|
||||||
if (!rb_ractor_shareable_p(val)) {
|
if (!rb_ractor_shareable_p(val)) {
|
||||||
rb_raise(rb_eNameError,
|
rb_raise(rb_eNameError,
|
||||||
"can not access non-sharable objects in constant %"PRIsVALUE"::%s by non-main ractor.", rb_class_path(klass), rb_id2name(id));
|
"can not access non-shareable objects in constant %"PRIsVALUE"::%s by non-main ractor.", rb_class_path(klass), rb_id2name(id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return val;
|
return val;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче