diff src/share/vm/graal/graalCodeInstaller.cpp @ 16520:9a07bf8467a6

[SPARC] Implement floatingpoint branch instructions, removing math substitutions for SPARC; fixing problems with constants in debug info (Big/Little Endian problems)
author Stefan Anzinger <stefan.anzinger@gmail.com>
date Sun, 13 Jul 2014 17:46:57 -0700
parents 39be5bc00046
children a2ec1ac769e4 8c70d65ec04a
line wrap: on
line diff
--- a/src/share/vm/graal/graalCodeInstaller.cpp	Fri Jul 11 18:43:18 2014 -0700
+++ b/src/share/vm/graal/graalCodeInstaller.cpp	Sun Jul 13 17:46:57 2014 -0700
@@ -267,8 +267,8 @@
   } else if (value->is_a(Constant::klass())){
     record_metadata_in_constant(value, oop_recorder);
     if (type == T_INT || type == T_FLOAT || type == T_SHORT || type == T_CHAR || type == T_BOOLEAN || type == T_BYTE) {
-      jlong prim = PrimitiveConstant::primitive(value);
-      return new ConstantIntValue(*(jint*)&prim);
+      jint prim = (jint)PrimitiveConstant::primitive(value);
+      return new ConstantIntValue(prim);
     } else if (type == T_LONG || type == T_DOUBLE) {
       jlong prim = PrimitiveConstant::primitive(value);
       second = new ConstantIntValue(0);