Mercurial > hg > graal-jvmci-8
comparison src/share/vm/opto/escape.cpp @ 17894:87b5e00100fe
8038048: assert(null_obj->escape_state() == PointsToNode::NoEscape,etc) runThese -full
Summary: use correct set_escape_state() method.
Reviewed-by: kvn, iignatyev
Contributed-by: Richard Reingruber <richard.reingruber@sap.com>
author | kvn |
---|---|
date | Wed, 16 Apr 2014 14:49:03 -0700 |
parents | 6d2fe9c23878 |
children | 52b4284cb496 b20a35eae442 |
comparison
equal
deleted
inserted
replaced
17893:a163af774cb9 | 17894:87b5e00100fe |
---|---|
708 } else if ((opcode == Op_StoreP) && (adr_type == TypeRawPtr::BOTTOM)) { | 708 } else if ((opcode == Op_StoreP) && (adr_type == TypeRawPtr::BOTTOM)) { |
709 // Stored value escapes in unsafe access. | 709 // Stored value escapes in unsafe access. |
710 Node *val = n->in(MemNode::ValueIn); | 710 Node *val = n->in(MemNode::ValueIn); |
711 PointsToNode* ptn = ptnode_adr(val->_idx); | 711 PointsToNode* ptn = ptnode_adr(val->_idx); |
712 assert(ptn != NULL, "node should be registered"); | 712 assert(ptn != NULL, "node should be registered"); |
713 ptn->set_escape_state(PointsToNode::GlobalEscape); | 713 set_escape_state(ptn, PointsToNode::GlobalEscape); |
714 // Add edge to object for unsafe access with offset. | 714 // Add edge to object for unsafe access with offset. |
715 PointsToNode* adr_ptn = ptnode_adr(adr->_idx); | 715 PointsToNode* adr_ptn = ptnode_adr(adr->_idx); |
716 assert(adr_ptn != NULL, "node should be registered"); | 716 assert(adr_ptn != NULL, "node should be registered"); |
717 if (adr_ptn->is_Field()) { | 717 if (adr_ptn->is_Field()) { |
718 assert(adr_ptn->as_Field()->is_oop(), "should be oop field"); | 718 assert(adr_ptn->as_Field()->is_oop(), "should be oop field"); |