changeset 3174:b279f99d7143

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
author roland
date Tue, 28 Feb 2012 09:13:58 +0100
parents 2ee7dcc77c63
children 031df0387c09
files src/share/vm/c1/c1_LinearScan.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/c1/c1_LinearScan.cpp	Tue Feb 28 10:04:01 2012 -0800
+++ b/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();
   }
 }