6910461: Register allocator may insert spill code at wrong insertion index
authorroland
Tue, 28 Feb 2012 09:13:58 +0100
changeset 11964 96fb8c3562f7
parent 11963 1ff2ccec5667
child 11965 a9882cd6807c
6910461: Register allocator may insert spill code at wrong insertion index Summary: When resolving exception edges after register allocation, the C1 register allocator may insert spill code at the wrong insertion position. Reviewed-by: kvn, never
hotspot/src/share/vm/c1/c1_LinearScan.cpp
--- a/hotspot/src/share/vm/c1/c1_LinearScan.cpp	Tue Feb 28 10:04:01 2012 -0800
+++ b/hotspot/src/share/vm/c1/c1_LinearScan.cpp	Tue Feb 28 09:13:58 2012 +0100
@@ -1884,7 +1884,7 @@
 
   if (move_resolver.has_mappings()) {
     // insert moves after first instruction
-    move_resolver.set_insert_position(block->lir(), 1);
+    move_resolver.set_insert_position(block->lir(), 0);
     move_resolver.resolve_and_append_moves();
   }
 }