summaryrefslogtreecommitdiff
path: root/yjit.c
diff options
context:
space:
mode:
authorJohn Hawthorn <[email protected]>2024-10-18 12:01:45 -0700
committerGitHub <[email protected]>2024-10-18 15:01:45 -0400
commit7be9a333cabd97a17a2926b15f756f2ef9e57243 (patch)
treee4fd6bf640fd0f4e81126e4d9b88f7402c623d4f /yjit.c
parente17243d3254387ae95b73d9bc6454db36b8e8a43 (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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/yjit.c b/yjit.c
index 737372daa1..4c21962f8c 100644
--- a/yjit.c
+++ b/yjit.c
@@ -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)
{