changeset 3382:acd6a3802609

7160539: JDeveloper crashes on 64-bit Windows Summary: x64 C1 needs to zero upper 32bits when doing l2i conversion Reviewed-by: never, kvn
author iveresov
date Wed, 11 Apr 2012 19:15:46 -0700
parents 3b1b50b3ad62
children ea3152ff2a49
files src/cpu/x86/vm/c1_LIRAssembler_x86.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp	Mon Apr 02 16:05:56 2012 -0700
+++ b/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp	Wed Apr 11 19:15:46 2012 -0700
@@ -1462,7 +1462,11 @@
       break;
 
     case Bytecodes::_l2i:
+#ifdef _LP64
+      __ movl(dest->as_register(), src->as_register_lo());
+#else
       move_regs(src->as_register_lo(), dest->as_register());
+#endif
       break;
 
     case Bytecodes::_i2b: