diff options
author | John Hawthorn <[email protected]> | 2024-10-18 12:01:45 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2024-10-18 15:01:45 -0400 |
commit | 7be9a333cabd97a17a2926b15f756f2ef9e57243 (patch) | |
tree | e4fd6bf640fd0f4e81126e4d9b88f7402c623d4f /yjit.c | |
parent | e17243d3254387ae95b73d9bc6454db36b8e8a43 (diff) |
YJIT: Allow shareable consts in multi-ractor mode (#11917)
* Update yjit-bindgen deps
* YJIT: Allow shareable consts in multi-ractor mode
* Update yjit/src/codegen.rs
Co-authored-by: Alan Wu <[email protected]>
---------
Co-authored-by: Alan Wu <[email protected]>
Notes
Notes:
Merged-By: maximecb <[email protected]>
Diffstat (limited to 'yjit.c')
-rw-r--r-- | yjit.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1062,6 +1062,12 @@ rb_IMEMO_TYPE_P(VALUE imemo, enum imemo_type imemo_type) return IMEMO_TYPE_P(imemo, imemo_type); } +bool +rb_yjit_constcache_shareable(const struct iseq_inline_constant_cache_entry *ice) +{ + return (ice->flags & IMEMO_CONST_CACHE_SHAREABLE) != 0; +} + void rb_assert_cme_handle(VALUE handle) { |