hotspot/src/share/vm/c1/c1_GraphBuilder.cpp
changeset 43462 cde11973a86a
parent 42553 2aeb79d952f3
child 43947 a52ee13998f3
child 46289 1904e7ec236e
--- a/hotspot/src/share/vm/c1/c1_GraphBuilder.cpp	Wed Jan 18 19:37:52 2017 -0800
+++ b/hotspot/src/share/vm/c1/c1_GraphBuilder.cpp	Thu Jan 19 08:10:11 2017 +0100
@@ -3298,7 +3298,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()) {