diff src/hotspot/share/gc/z/c2/zBarrierSetC2.hpp @ 52036:5d6d636cefff

8211776: 8210887 broke arraycopy optimization when ZGC is enabled Reviewed-by: kvn
author roland
date Fri, 05 Oct 2018 16:47:27 +0200
parents 2ef304ee001d
children 4f2215a00ed1
line wrap: on
line diff
--- a/src/hotspot/share/gc/z/c2/zBarrierSetC2.hpp	Mon Oct 08 13:25:39 2018 +0800
+++ b/src/hotspot/share/gc/z/c2/zBarrierSetC2.hpp	Fri Oct 05 16:47:27 2018 +0200
@@ -194,7 +194,7 @@
   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.