8029464: assert(ft == ttkp->cast_to_ptr_type(jtkp->ptr()) || ft->isa_narrowoop()
authorroland
Mon, 13 Jan 2014 16:16:25 -0800
changeset 22501 ccc61eeabf49
parent 22247 cde20a0fa906
child 22502 f8adbdb312a1
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
hotspot/src/share/vm/opto/cfgnode.cpp
--- a/hotspot/src/share/vm/opto/cfgnode.cpp	Fri Jan 10 06:36:18 2014 +0100
+++ b/hotspot/src/share/vm/opto/cfgnode.cpp	Mon Jan 13 16:16:25 2014 -0800
@@ -1018,7 +1018,7 @@
           !jtkp->klass_is_exact() && // Keep exact interface klass (6894807)
           ttkp->is_loaded() && !ttkp->klass()->is_interface() ) {
         assert(ft == ttkp->cast_to_ptr_type(jtkp->ptr()) ||
-               ft->isa_narrowoop() && ft->make_ptr() == ttkp->cast_to_ptr_type(jtkp->ptr()), "");
+               ft->isa_narrowklass() && ft->make_ptr() == ttkp->cast_to_ptr_type(jtkp->ptr()), "");
         jt = ft;
       }
     }