Skip to content
Permalink
Browse files
8257231: assert(!is_mcall || (call_returns[block->_pre_order] <= (uin…
…t) current_offset))

Reviewed-by: shade, chagedorn
  • Loading branch information
Patric Hedlin committed Dec 1, 2020
1 parent eaf4db6 commit e3d0f270314f184104a63398057496d0e8a1d480
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/hotspot/share/opto/output.cpp
@@ -1696,15 +1696,16 @@ void PhaseOutput::fill_buffer(CodeBuffer* cb, uint* blk_starts) {
n->emit(*cb, C->regalloc());
current_offset = cb->insts_size();

assert(!is_mcall || (call_returns[block->_pre_order] <= (uint) current_offset), "ret_addr_offset() not within emitted code");

// Above we only verified that there is enough space in the instruction section.
// However, the instruction may emit stubs that cause code buffer expansion.
// Bail out here if expansion failed due to a lack of code cache space.
if (C->failing()) {
return;
}

assert(!is_mcall || (call_returns[block->_pre_order] <= (uint)current_offset),
"ret_addr_offset() not within emitted code");

#ifdef ASSERT
uint n_size = n->size(C->regalloc());
if (n_size < (current_offset-instr_offset)) {

1 comment on commit e3d0f27

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on e3d0f27 Dec 1, 2020

Please sign in to comment.