--- a/src/hotspot/share/opto/output.cpp Mon Oct 30 16:37:53 2017 +0100
+++ b/src/hotspot/share/opto/output.cpp Tue Oct 31 11:55:09 2017 -0400
@@ -577,10 +577,10 @@
// arbitrary, and are not tied to any machine-level encodings.)
#ifdef _LP64
if( t->base() == Type::DoubleBot || t->base() == Type::DoubleCon ) {
- array->append(new ConstantIntValue(0));
+ array->append(new ConstantIntValue((jint)0));
array->append(new_loc_value( _regalloc, regnum, Location::dbl ));
} else if ( t->base() == Type::Long ) {
- array->append(new ConstantIntValue(0));
+ array->append(new ConstantIntValue((jint)0));
array->append(new_loc_value( _regalloc, regnum, Location::lng ));
} else if ( t->base() == Type::RawPtr ) {
// jsr/ret return address which must be restored into a the full
@@ -663,7 +663,7 @@
case Type::DoubleCon: {
jdouble d = t->is_double_constant()->getd();
#ifdef _LP64
- array->append(new ConstantIntValue(0));
+ array->append(new ConstantIntValue((jint)0));
array->append(new ConstantDoubleValue(d));
#else
// Repack the double as two jints.
@@ -683,7 +683,7 @@
case Type::Long: {
jlong d = t->is_long()->get_con();
#ifdef _LP64
- array->append(new ConstantIntValue(0));
+ array->append(new ConstantIntValue((jint)0));
array->append(new ConstantLongValue(d));
#else
// Repack the long as two jints.