YJIT: Return None if entry block compilation fails (#12445)

This commit is contained in:
Takashi Kokubun 2024-12-23 14:12:08 -08:00 committed by GitHub
parent 5b22f14e53
commit 527cc73282
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2024-12-23 22:12:27 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>

View File

@ -3366,8 +3366,9 @@ fn entry_stub_hit_body(
get_or_create_iseq_payload(iseq).entries.push(pending_entry.into_entry());
}
// Let the stub jump to the entry to load entry registers
Some(next_entry.raw_ptr(cb))
// Return a code pointer if the block is successfully compiled. The entry stub needs
// to jump to the entry preceding the block to load the registers in reg_mapping.
blockref.map(|_block| next_entry.raw_ptr(cb))
}
/// Generate a stub that calls entry_stub_hit