--- old/src/hotspot/share/gc/z/c2/zBarrierSetC2.cpp 2018-10-05 16:57:01.243651994 +0200 +++ new/src/hotspot/share/gc/z/c2/zBarrierSetC2.cpp 2018-10-05 16:56:52.795631597 +0200 @@ -1427,6 +1427,10 @@ 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