8015441: runThese crashed with assert(opcode == Op_ConP || opcode == Op_ThreadLocal || opcode == Op_CastX2P ..) failed: sanity

Fri, 31 May 2013 13:54:47 -0700

author
kvn
date
Fri, 31 May 2013 13:54:47 -0700
changeset 5223
83dcb116fdb1
parent 5222
28e5aed7f3a6
child 5224
c07dd9be16e8

8015441: runThese crashed with assert(opcode == Op_ConP || opcode == Op_ThreadLocal || opcode == Op_CastX2P ..) failed: sanity
Summary: Relax the assert to accept any raw ptr types.
Reviewed-by: roland

src/share/vm/opto/escape.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/opto/escape.cpp	Fri May 31 14:40:26 2013 +0200
     1.2 +++ b/src/share/vm/opto/escape.cpp	Fri May 31 13:54:47 2013 -0700
     1.3 @@ -2202,7 +2202,7 @@
     1.4      int opcode = uncast_base->Opcode();
     1.5      assert(opcode == Op_ConP || opcode == Op_ThreadLocal ||
     1.6             opcode == Op_CastX2P || uncast_base->is_DecodeNarrowPtr() ||
     1.7 -           (uncast_base->is_Mem() && uncast_base->bottom_type() == TypeRawPtr::NOTNULL) ||
     1.8 +           (uncast_base->is_Mem() && (uncast_base->bottom_type()->isa_rawptr() != NULL)) ||
     1.9             (uncast_base->is_Proj() && uncast_base->in(0)->is_Allocate()), "sanity");
    1.10    }
    1.11    return base;

mercurial