提交 446a6918 编写于 作者: B bdelsart

7077806: ARM: java.lang.InternalError: bound subword value does not fit into the subword type

Summary: shared fix necessary for ARM/PPC
Reviewed-by: twisti, roland
上级 ec1401b7
......@@ -515,11 +515,12 @@ class MethodHandles: AllStatic {
}
// Here is the transformation the i2i adapter must perform:
static int truncate_subword_from_vminfo(jint value, int vminfo) {
jint tem = value << vminfo;
int shift = vminfo & ~CONV_VMINFO_SIGN_FLAG;
jint tem = value << shift;
if ((vminfo & CONV_VMINFO_SIGN_FLAG) != 0) {
return (jint)tem >> vminfo;
return (jint)tem >> shift;
} else {
return (juint)tem >> vminfo;
return (juint)tem >> shift;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册