diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-10-20 17:28:12 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-14 19:19:16 +0900 |
commit | 65450e8f7daf59ca64a12ff1da0efdc0f4280dc1 (patch) | |
tree | c9a7db9aad84e42b68ddeb7a32eba27ce7b2a607 /parse.y | |
parent | f43c71abe07b4b2b0f8f9a69c567fcd0f38faef6 (diff) |
Call FrozenCore.make_shareable
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3681
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -10925,12 +10925,14 @@ mark_lvar_used(struct parser_params *p, NODE *rhs) } } +extern VALUE rb_mRubyVMFrozenCore; + static NODE * shareable_constant_value(struct parser_params *p, NODE *value, const YYLTYPE *loc) { if (p->ctxt.shareable_constant_value) { - NODE *ractor = NEW_COLON3(rb_intern("Ractor"), loc); - value = NEW_CALL(ractor, rb_intern("make_shareable"), + NODE *fcore = NEW_LIT(rb_mRubyVMFrozenCore, loc); + value = NEW_CALL(fcore, rb_intern("make_shareable"), NEW_LIST(value, loc), loc); } return value; |