Mercurial > hg > graal-compiler
comparison src/share/vm/opto/output.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 | e10e43e58e92 |
children | 836a62f43af9 d1034bd8cefc 75ef1a499665 |
comparison
equal
deleted
inserted
replaced
10278:6f3fd5150b67 | 10279:70120f47d403 |
---|---|
927 scval = new_loc_value( _regalloc, obj_reg, Location::narrowoop ); | 927 scval = new_loc_value( _regalloc, obj_reg, Location::narrowoop ); |
928 } else { | 928 } else { |
929 scval = new_loc_value( _regalloc, obj_reg, Location::oop ); | 929 scval = new_loc_value( _regalloc, obj_reg, Location::oop ); |
930 } | 930 } |
931 } else { | 931 } else { |
932 const TypePtr *tp = obj_node->bottom_type()->make_ptr(); | 932 const TypePtr *tp = obj_node->get_ptr_type(); |
933 scval = new ConstantOopWriteValue(tp->is_oopptr()->const_oop()->constant_encoding()); | 933 scval = new ConstantOopWriteValue(tp->is_oopptr()->const_oop()->constant_encoding()); |
934 } | 934 } |
935 | 935 |
936 OptoReg::Name box_reg = BoxLockNode::reg(box_node); | 936 OptoReg::Name box_reg = BoxLockNode::reg(box_node); |
937 Location basic_lock = Location::new_stk_loc(Location::normal,_regalloc->reg2offset(box_reg)); | 937 Location basic_lock = Location::new_stk_loc(Location::normal,_regalloc->reg2offset(box_reg)); |