8225743: Remove ShenandoahBarrierSetC2::escape_is_barrier_node and related GC interface
Reviewed-by: roland, eosterlund
This commit is contained in:
parent
813a9cf6cb
commit
5370654910
src/hotspot/share
gc
opto
@ -308,7 +308,6 @@ public:
|
||||
virtual bool escape_add_to_con_graph(ConnectionGraph* conn_graph, PhaseGVN* gvn, Unique_Node_List* delayed_worklist, Node* n, uint opcode) const { return false; }
|
||||
virtual bool escape_add_final_edges(ConnectionGraph* conn_graph, PhaseGVN* gvn, Node* n, uint opcode) const { return false; }
|
||||
virtual bool escape_has_out_with_unsafe_object(Node* n) const { return false; }
|
||||
virtual bool escape_is_barrier_node(Node* n) const { return false; }
|
||||
|
||||
virtual bool matcher_find_shared_visit(Matcher* matcher, Matcher::MStack& mstack, Node* n, uint opcode, bool& mem_op, int& mem_addr_idx) const { return false; };
|
||||
virtual bool matcher_find_shared_post_visit(Matcher* matcher, Node* n, uint opcode) const { return false; };
|
||||
|
@ -1194,10 +1194,6 @@ bool ShenandoahBarrierSetC2::escape_has_out_with_unsafe_object(Node* n) const {
|
||||
|
||||
}
|
||||
|
||||
bool ShenandoahBarrierSetC2::escape_is_barrier_node(Node* n) const {
|
||||
return n->Opcode() == Op_ShenandoahLoadReferenceBarrier;
|
||||
}
|
||||
|
||||
bool ShenandoahBarrierSetC2::matcher_find_shared_post_visit(Matcher* matcher, Node* n, uint opcode) const {
|
||||
switch (opcode) {
|
||||
case Op_ShenandoahCompareAndExchangeP:
|
||||
|
@ -144,7 +144,6 @@ public:
|
||||
virtual bool escape_add_to_con_graph(ConnectionGraph* conn_graph, PhaseGVN* gvn, Unique_Node_List* delayed_worklist, Node* n, uint opcode) const;
|
||||
virtual bool escape_add_final_edges(ConnectionGraph* conn_graph, PhaseGVN* gvn, Node* n, uint opcode) const;
|
||||
virtual bool escape_has_out_with_unsafe_object(Node* n) const;
|
||||
virtual bool escape_is_barrier_node(Node* n) const;
|
||||
|
||||
virtual bool matcher_find_shared_post_visit(Matcher* matcher, Node* n, uint opcode) const;
|
||||
virtual bool matcher_is_store_load_barrier(Node* x, uint xop) const;
|
||||
|
@ -2346,8 +2346,7 @@ Node* ConnectionGraph::get_addp_base(Node *addp) {
|
||||
assert(opcode == Op_ConP || opcode == Op_ThreadLocal ||
|
||||
opcode == Op_CastX2P || uncast_base->is_DecodeNarrowPtr() ||
|
||||
(uncast_base->is_Mem() && (uncast_base->bottom_type()->isa_rawptr() != NULL)) ||
|
||||
(uncast_base->is_Proj() && uncast_base->in(0)->is_Allocate()) ||
|
||||
BarrierSet::barrier_set()->barrier_set_c2()->escape_is_barrier_node(uncast_base), "sanity");
|
||||
(uncast_base->is_Proj() && uncast_base->in(0)->is_Allocate()), "sanity");
|
||||
}
|
||||
}
|
||||
return base;
|
||||
@ -3085,7 +3084,6 @@ void ConnectionGraph::split_unique_types(GrowableArray<Node *> &alloc_worklist,
|
||||
n->is_CheckCastPP() ||
|
||||
n->is_EncodeP() ||
|
||||
n->is_DecodeN() ||
|
||||
BarrierSet::barrier_set()->barrier_set_c2()->escape_is_barrier_node(n) ||
|
||||
(n->is_ConstraintCast() && n->Opcode() == Op_CastPP)) {
|
||||
if (visited.test_set(n->_idx)) {
|
||||
assert(n->is_Phi(), "loops only through Phi's");
|
||||
@ -3156,7 +3154,6 @@ void ConnectionGraph::split_unique_types(GrowableArray<Node *> &alloc_worklist,
|
||||
use->is_CheckCastPP() ||
|
||||
use->is_EncodeNarrowPtr() ||
|
||||
use->is_DecodeNarrowPtr() ||
|
||||
BarrierSet::barrier_set()->barrier_set_c2()->escape_is_barrier_node(use) ||
|
||||
(use->is_ConstraintCast() && use->Opcode() == Op_CastPP)) {
|
||||
alloc_worklist.append_if_missing(use);
|
||||
#ifdef ASSERT
|
||||
|
Loading…
x
Reference in New Issue
Block a user