Mercurial > hg > graal-jvmci-8
changeset 24104:01e71b55ff02
8172751: OSR compilation at unreachable bci causes C1 crash
author | Andreas Woess <andreas.woess@oracle.com> |
---|---|
date | Tue, 14 Feb 2017 21:59:01 +0100 |
parents | b48ccfe53101 |
children | 1b7ea4ac489c |
files | src/share/vm/c1/c1_GraphBuilder.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/c1/c1_GraphBuilder.cpp Tue Feb 14 21:13:43 2017 +0100 +++ b/src/share/vm/c1/c1_GraphBuilder.cpp Tue Feb 14 21:59:01 2017 +0100 @@ -3285,7 +3285,9 @@ // for osr compile, bailout if some requirements are not fulfilled if (osr_bci != -1) { BlockBegin* osr_block = blm.bci2block()->at(osr_bci); - assert(osr_block->is_set(BlockBegin::was_visited_flag),"osr entry must have been visited for osr compile"); + if (!osr_block->is_set(BlockBegin::was_visited_flag)) { + BAILOUT("osr entry must have been visited for osr compile"); + } // check if osr entry point has empty stack - we cannot handle non-empty stacks at osr entry points if (!osr_block->state()->stack_is_empty()) {