--- old/src/hotspot/share/gc/shared/c2/cardTableBarrierSetC2.cpp 2019-09-11 09:50:41.699381678 -0400 +++ new/src/hotspot/share/gc/shared/c2/cardTableBarrierSetC2.cpp 2019-09-11 09:50:41.353063304 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -187,6 +187,6 @@ } bool CardTableBarrierSetC2::array_copy_requires_gc_barriers(bool tightly_coupled_alloc, BasicType type, bool is_clone, ArrayCopyPhase phase) const { - bool is_oop = type == T_OBJECT || type == T_ARRAY; + bool is_oop = is_reference_type(type); return is_oop && (!tightly_coupled_alloc || !use_ReduceInitialCardMarks()); }