< prev index next >

src/hotspot/share/opto/node.cpp

Print this page
rev 52175 : JDK-8212603: Need to step over GC barriers in Node::eqv_uncast()

*** 2454,2458 **** --- 2454,2465 ---- //------------------------------ideal_reg-------------------------------------- uint TypeNode::ideal_reg() const { return _type->ideal_reg(); } + + bool Node::eqv_uncast(const Node* n) const { + BarrierSetC2* bs = BarrierSet::barrier_set()->barrier_set_c2(); + Node* obj1 = bs->step_over_gc_barrier(const_cast<Node*>(this)); + Node* obj2 = bs->step_over_gc_barrier(const_cast<Node*>(n)); + return (obj1->uncast() == obj2->uncast()); + }
< prev index next >