changeset 3710:3576af4cb939

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 c7ed11779ce8
children 847da049d62f
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	Tue Apr 10 09:31:04 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: