提交 a058b81f 编写于 作者: J jrose

6981777: implement JSR 292 EG adjustments from summer 2010

Summary: Small bug fix to make "raw" adapters work for JDK changes under 6981777
Reviewed-by: twisti
上级 8280c960
...@@ -974,6 +974,8 @@ bool MethodHandles::same_basic_type_for_arguments(BasicType src, ...@@ -974,6 +974,8 @@ bool MethodHandles::same_basic_type_for_arguments(BasicType src,
assert(src != T_VOID && dst != T_VOID, "should not be here"); assert(src != T_VOID && dst != T_VOID, "should not be here");
if (src == dst) return true; if (src == dst) return true;
if (type2size[src] != type2size[dst]) return false; if (type2size[src] != type2size[dst]) return false;
if (src == T_OBJECT || dst == T_OBJECT) return false;
if (raw) return true; // bitwise reinterpretation; caller guarantees safety
// allow reinterpretation casts for integral widening // allow reinterpretation casts for integral widening
if (is_subword_type(src)) { // subwords can fit in int or other subwords if (is_subword_type(src)) { // subwords can fit in int or other subwords
if (dst == T_INT) // any subword fits in an int if (dst == T_INT) // any subword fits in an int
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册