Mercurial > hg > truffle
comparison src/share/vm/opto/cfgnode.cpp @ 17626:84df3d405315
8029464: assert(ft == ttkp->cast_to_ptr_type(jtkp->ptr()) || ft->isa_narrowoop()
Summary: Fix the assert check for narrow klass pointer.
Reviewed-by: twisti, kvn
author | roland |
---|---|
date | Mon, 13 Jan 2014 16:16:25 -0800 |
parents | 7944aba7ba41 |
children | 5ec7dace41a6 |
comparison
equal
deleted
inserted
replaced
17625:7b9127b17b7a | 17626:84df3d405315 |
---|---|
1016 if( jtkp && ttkp ) { | 1016 if( jtkp && ttkp ) { |
1017 if( jtkp->is_loaded() && jtkp->klass()->is_interface() && | 1017 if( jtkp->is_loaded() && jtkp->klass()->is_interface() && |
1018 !jtkp->klass_is_exact() && // Keep exact interface klass (6894807) | 1018 !jtkp->klass_is_exact() && // Keep exact interface klass (6894807) |
1019 ttkp->is_loaded() && !ttkp->klass()->is_interface() ) { | 1019 ttkp->is_loaded() && !ttkp->klass()->is_interface() ) { |
1020 assert(ft == ttkp->cast_to_ptr_type(jtkp->ptr()) || | 1020 assert(ft == ttkp->cast_to_ptr_type(jtkp->ptr()) || |
1021 ft->isa_narrowoop() && ft->make_ptr() == ttkp->cast_to_ptr_type(jtkp->ptr()), ""); | 1021 ft->isa_narrowklass() && ft->make_ptr() == ttkp->cast_to_ptr_type(jtkp->ptr()), ""); |
1022 jt = ft; | 1022 jt = ft; |
1023 } | 1023 } |
1024 } | 1024 } |
1025 if (jt != ft && jt->base() == ft->base()) { | 1025 if (jt != ft && jt->base() == ft->base()) { |
1026 if (jt->isa_int() && | 1026 if (jt->isa_int() && |