src/share/vm/opto/output.cpp

changeset 7001
b6a8cc1e0d92
parent 6723
0bf37f737702
child 7003
69ea58782b1a
     1.1 --- a/src/share/vm/opto/output.cpp	Thu May 22 11:36:23 2014 -0400
     1.2 +++ b/src/share/vm/opto/output.cpp	Tue Jul 29 13:54:16 2014 +0200
     1.3 @@ -783,9 +783,9 @@
     1.4      // grow downwards in all implementations.
     1.5      // (If, on some machine, the interpreter's Java locals or stack
     1.6      // were to grow upwards, the embedded doubles would be word-swapped.)
     1.7 -    jint   *dp = (jint*)&d;
     1.8 -    array->append(new ConstantIntValue(dp[1]));
     1.9 -    array->append(new ConstantIntValue(dp[0]));
    1.10 +    jlong_accessor acc = { jlong_cast(d) };
    1.11 +    array->append(new ConstantIntValue(acc.words[1]));
    1.12 +    array->append(new ConstantIntValue(acc.words[0]));
    1.13  #endif
    1.14      break;
    1.15    }
    1.16 @@ -802,9 +802,9 @@
    1.17      // grow downwards in all implementations.
    1.18      // (If, on some machine, the interpreter's Java locals or stack
    1.19      // were to grow upwards, the embedded doubles would be word-swapped.)
    1.20 -    jint *dp = (jint*)&d;
    1.21 -    array->append(new ConstantIntValue(dp[1]));
    1.22 -    array->append(new ConstantIntValue(dp[0]));
    1.23 +    jlong_accessor acc = { d };
    1.24 +    array->append(new ConstantIntValue(acc.words[1]));
    1.25 +    array->append(new ConstantIntValue(acc.words[0]));
    1.26  #endif
    1.27      break;
    1.28    }

mercurial