mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Check if outlined code block has enough space too
This commit is contained in:
parent
e8c914c250
commit
2c866ce8f0
1 changed files with 4 additions and 0 deletions
|
@ -193,6 +193,10 @@ ujit_compile_insn(rb_iseq_t *iseq, unsigned int insn_idx, unsigned int* next_uji
|
|||
{
|
||||
rb_bug("out of executable memory");
|
||||
}
|
||||
if (ocb->write_pos + 1024 >= ocb->mem_size)
|
||||
{
|
||||
rb_bug("out of executable memory (outlined block)");
|
||||
}
|
||||
|
||||
// Align the current write positon to cache line boundaries
|
||||
cb_align_pos(cb, 64);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue