diff -r 2a12a3865916 -r 2ef304ee001d src/hotspot/share/gc/shared/c2/barrierSetC2.hpp --- 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; }