src/hotspot/share/gc/shared/c2/barrierSetC2.hpp
changeset 51984 2ef304ee001d
parent 51880 ec4c3c287ca7
child 52224 4f2215a00ed1
--- a/src/hotspot/share/gc/shared/c2/barrierSetC2.hpp	Thu Sep 27 16:25:25 2018 +0200
+++ b/src/hotspot/share/gc/shared/c2/barrierSetC2.hpp	Fri Sep 28 10:42:40 2018 +0200
@@ -197,7 +197,12 @@
                              intx prefetch_lines) const;
 
   // These are general helper methods used by C2
-  virtual bool array_copy_requires_gc_barriers(BasicType type) const { return false; }
+  enum ArrayCopyPhase {
+    Parsing,
+    Optimization,
+    Expansion
+  };
+  virtual bool array_copy_requires_gc_barriers(bool tightly_coupled_alloc, BasicType type, bool is_clone, ArrayCopyPhase phase) const { return false; }
 
   // Support for GC barriers emitted during parsing
   virtual bool has_load_barriers() const { return false; }