src/hotspot/share/oops/objArrayKlass.cpp
changeset 47658 c2b7fb8e5144
parent 47216 71c04702a3d5
child 47998 fb0275c320a0
equal deleted inserted replaced
47657:28b2dbe488f1 47658:c2b7fb8e5144
   224 
   224 
   225   BarrierSet* bs = Universe::heap()->barrier_set();
   225   BarrierSet* bs = Universe::heap()->barrier_set();
   226   // For performance reasons, we assume we are that the write barrier we
   226   // For performance reasons, we assume we are that the write barrier we
   227   // are using has optimized modes for arrays of references.  At least one
   227   // are using has optimized modes for arrays of references.  At least one
   228   // of the asserts below will fail if this is not the case.
   228   // of the asserts below will fail if this is not the case.
   229   assert(bs->has_write_ref_array_opt(), "Barrier set must have ref array opt");
       
   230   assert(bs->has_write_ref_array_pre_opt(), "For pre-barrier as well.");
       
   231 
   229 
   232   if (s == d) {
   230   if (s == d) {
   233     // since source and destination are equal we do not need conversion checks.
   231     // since source and destination are equal we do not need conversion checks.
   234     assert(length > 0, "sanity check");
   232     assert(length > 0, "sanity check");
   235     bs->write_ref_array_pre(dst, length);
   233     bs->write_ref_array_pre(dst, length);