Mercurial > hg > graal-jvmci-8
comparison src/share/vm/c1/c1_GraphBuilder.cpp @ 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 | f13e777eb255 |
children | 719853999215 |
comparison
equal
deleted
inserted
replaced
24103:b48ccfe53101 | 24104:01e71b55ff02 |
---|---|
3283 | 3283 |
3284 NOT_PRODUCT(if (PrintValueNumbering && Verbose) print_stats()); | 3284 NOT_PRODUCT(if (PrintValueNumbering && Verbose) print_stats()); |
3285 // for osr compile, bailout if some requirements are not fulfilled | 3285 // for osr compile, bailout if some requirements are not fulfilled |
3286 if (osr_bci != -1) { | 3286 if (osr_bci != -1) { |
3287 BlockBegin* osr_block = blm.bci2block()->at(osr_bci); | 3287 BlockBegin* osr_block = blm.bci2block()->at(osr_bci); |
3288 assert(osr_block->is_set(BlockBegin::was_visited_flag),"osr entry must have been visited for osr compile"); | 3288 if (!osr_block->is_set(BlockBegin::was_visited_flag)) { |
3289 BAILOUT("osr entry must have been visited for osr compile"); | |
3290 } | |
3289 | 3291 |
3290 // check if osr entry point has empty stack - we cannot handle non-empty stacks at osr entry points | 3292 // check if osr entry point has empty stack - we cannot handle non-empty stacks at osr entry points |
3291 if (!osr_block->state()->stack_is_empty()) { | 3293 if (!osr_block->state()->stack_is_empty()) { |
3292 BAILOUT("stack not empty at OSR entry point"); | 3294 BAILOUT("stack not empty at OSR entry point"); |
3293 } | 3295 } |