7005865: Crash when running with PrintIRWithLIR
authorvladidan
Mon, 11 Apr 2011 23:02:37 -0400
changeset 9168 c2cdeb17ec31
parent 9130 7d6aa04b56c1
child 9169 644cd4523a01
7005865: Crash when running with PrintIRWithLIR Summary: the failure is caused by uninitialized bci number Reviewed-by: iveresov
hotspot/src/share/vm/c1/c1_Instruction.cpp
--- a/hotspot/src/share/vm/c1/c1_Instruction.cpp	Thu Apr 07 20:26:41 2011 -0700
+++ b/hotspot/src/share/vm/c1/c1_Instruction.cpp	Mon Apr 11 23:02:37 2011 -0400
@@ -559,7 +559,7 @@
 // of the inserted block, without recomputing the values of the other blocks
 // in the CFG. Therefore the value of "depth_first_number" in BlockBegin becomes meaningless.
 BlockBegin* BlockBegin::insert_block_between(BlockBegin* sux) {
-  BlockBegin* new_sux = new BlockBegin(-99);
+  BlockBegin* new_sux = new BlockBegin(end()->state()->bci());
 
   // mark this block (special treatment when block order is computed)
   new_sux->set(critical_edge_split_flag);