summaryrefslogtreecommitdiff
path: root/mjit_compiler.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-11-28 21:59:00 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2022-11-28 22:03:16 -0800
commitbb6f933d51ae4c663a1d768508fc840c56be07a3 (patch)
tree5685d22571d9bee5bc6ff0f1c56e529ead188bcc /mjit_compiler.c
parent9c13fc614c2de0ca4aa8b6ecdd84033ef689b542 (diff)
MJIT: Get rid of is_entries copy
MJIT worker no longer exists, so we don't need this safeguard anymore.
Diffstat (limited to 'mjit_compiler.c')
-rw-r--r--mjit_compiler.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/mjit_compiler.c b/mjit_compiler.c
index 5d5d25c1ae..6f0cfaa452 100644
--- a/mjit_compiler.c
+++ b/mjit_compiler.c
@@ -104,17 +104,6 @@ cdhash_each(VALUE key, VALUE value, VALUE hash)
extern int
mjit_capture_cc_entries(const struct rb_iseq_constant_body *compiled_iseq, const struct rb_iseq_constant_body *captured_iseq);
-// Copy current is_entries and use it throughout the current compilation consistently.
-// While ic->entry has been immutable since https://github.com/ruby/ruby/pull/3662,
-// we still need this to avoid a race condition between entries and ivar_serial/max_ivar_index.
-static void
-mjit_capture_is_entries(const struct rb_iseq_constant_body *body, union iseq_inline_storage_entry *is_entries)
-{
- if (is_entries == NULL)
- return;
- memcpy(is_entries, body->is_entries, sizeof(union iseq_inline_storage_entry) * ISEQ_IS_SIZE(body));
-}
-
// Compile ISeq to C code in `f`. It returns true if it succeeds to compile.
bool
mjit_compile(FILE *f, const rb_iseq_t *iseq, const char *funcname, int id)