summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yjit_codegen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/yjit_codegen.c b/yjit_codegen.c
index d5291fc660..87c5b12043 100644
--- a/yjit_codegen.c
+++ b/yjit_codegen.c
@@ -199,6 +199,10 @@ _counted_side_exit(uint8_t *existing_side_exit, int64_t *counter)
static void
_add_comment(codeblock_t* cb, const char* comment_str)
{
+ // We can't add comments to the outlined code block
+ if (cb == ocb)
+ return;
+
// Avoid adding duplicate comment strings (can happen due to deferred codegen)
size_t num_comments = rb_darray_size(yjit_code_comments);
if (num_comments > 0) {
@@ -244,7 +248,7 @@ yjit_load_regs(codeblock_t* cb)
pop(cb, REG_CFP);
}
-// Generate an inline exit to return to the interpreter
+// Generate an exit to return to the interpreter
static uint8_t *
yjit_gen_exit(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb)
{