src/hotspot/share/gc/shared/c2/cardTableBarrierSetC2.cpp
changeset 58273 08a5148e7c4e
parent 57692 8f3fcb9251d1
child 58679 9c3209ff7550
child 59053 ba6c248cae19
equal deleted inserted replaced
58272:e27564cd10e3 58273:08a5148e7c4e
     1 /*
     1 /*
     2  * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   185     macro->replace_node(mem, mem->in(MemNode::Memory));
   185     macro->replace_node(mem, mem->in(MemNode::Memory));
   186   }
   186   }
   187 }
   187 }
   188 
   188 
   189 bool CardTableBarrierSetC2::array_copy_requires_gc_barriers(bool tightly_coupled_alloc, BasicType type, bool is_clone, ArrayCopyPhase phase) const {
   189 bool CardTableBarrierSetC2::array_copy_requires_gc_barriers(bool tightly_coupled_alloc, BasicType type, bool is_clone, ArrayCopyPhase phase) const {
   190   bool is_oop = type == T_OBJECT || type == T_ARRAY;
   190   bool is_oop = is_reference_type(type);
   191   return is_oop && (!tightly_coupled_alloc || !use_ReduceInitialCardMarks());
   191   return is_oop && (!tightly_coupled_alloc || !use_ReduceInitialCardMarks());
   192 }
   192 }