Mercurial > hg > truffle
comparison src/share/vm/opto/macro.cpp @ 10279:70120f47d403
8014189: JVM crash with SEGV in ConnectionGraph::record_for_escape_analysis()
Summary: Add NULL checks and asserts for Type::make_ptr() returned value.
Reviewed-by: twisti
author | kvn |
---|---|
date | Thu, 09 May 2013 17:28:04 -0700 |
parents | 6f3fd5150b67 |
children | 766fac3395d6 |
comparison
equal
deleted
inserted
replaced
10278:6f3fd5150b67 | 10279:70120f47d403 |
---|---|
832 // Enable "DecodeN(EncodeP(Allocate)) --> Allocate" transformation | 832 // Enable "DecodeN(EncodeP(Allocate)) --> Allocate" transformation |
833 // to be able scalar replace the allocation. | 833 // to be able scalar replace the allocation. |
834 if (field_val->is_EncodeP()) { | 834 if (field_val->is_EncodeP()) { |
835 field_val = field_val->in(1); | 835 field_val = field_val->in(1); |
836 } else { | 836 } else { |
837 field_val = transform_later(new (C) DecodeNNode(field_val, field_val->bottom_type()->make_ptr())); | 837 field_val = transform_later(new (C) DecodeNNode(field_val, field_val->get_ptr_type())); |
838 } | 838 } |
839 } | 839 } |
840 sfpt->add_req(field_val); | 840 sfpt->add_req(field_val); |
841 } | 841 } |
842 JVMState *jvms = sfpt->jvms(); | 842 JVMState *jvms = sfpt->jvms(); |