8211776: 8210887 broke arraycopy optimization when ZGC is enabled
Reviewed-by: kvn
This commit is contained in:
parent
5cf91fc60e
commit
90d6bbd01a
@ -1427,6 +1427,10 @@ Node* ZBarrierSetC2::step_over_gc_barrier(Node* c) const {
|
||||
return c;
|
||||
}
|
||||
|
||||
bool ZBarrierSetC2::array_copy_requires_gc_barriers(bool tightly_coupled_alloc, BasicType type, bool is_clone, ArrayCopyPhase phase) const {
|
||||
return type == T_OBJECT || type == T_ARRAY;
|
||||
}
|
||||
|
||||
// == Verification ==
|
||||
|
||||
#ifdef ASSERT
|
||||
|
@ -194,7 +194,7 @@ public:
|
||||
virtual void enqueue_useful_gc_barrier(Unique_Node_List &worklist, Node* node) const;
|
||||
virtual void register_potential_barrier_node(Node* node) const;
|
||||
virtual void unregister_potential_barrier_node(Node* node) const;
|
||||
virtual bool array_copy_requires_gc_barriers(bool tightly_coupled_alloc, BasicType type, bool is_clone, ArrayCopyPhase phase) const { return true; }
|
||||
virtual bool array_copy_requires_gc_barriers(bool tightly_coupled_alloc, BasicType type, bool is_clone, ArrayCopyPhase phase) const;
|
||||
virtual Node* step_over_gc_barrier(Node* c) const;
|
||||
// If the BarrierSetC2 state has kept macro nodes in its compilation unit state to be
|
||||
// expanded later, then now is the time to do so.
|
||||
|
Loading…
Reference in New Issue
Block a user