src/hotspot/share/runtime/stubRoutines.cpp
changeset 47658 c2b7fb8e5144
parent 47634 6a0c42c40cd1
child 47998 fb0275c320a0
--- a/src/hotspot/share/runtime/stubRoutines.cpp	Wed Oct 18 19:36:17 2017 -0700
+++ b/src/hotspot/share/runtime/stubRoutines.cpp	Thu Oct 19 11:25:55 2017 +0200
@@ -381,14 +381,12 @@
     assert(count != 0, "count should be non-zero");
     assert(count <= (size_t)max_intx, "count too large");
     BarrierSet* bs = Universe::heap()->barrier_set();
-    assert(bs->has_write_ref_array_pre_opt(), "Must have pre-barrier opt");
     bs->write_ref_array_pre(dest, (int)count, dest_uninitialized);
 }
 
 static void gen_arraycopy_barrier(oop* dest, size_t count) {
     assert(count != 0, "count should be non-zero");
     BarrierSet* bs = Universe::heap()->barrier_set();
-    assert(bs->has_write_ref_array_opt(), "Barrier set must have ref array opt");
     bs->write_ref_array((HeapWord*)dest, count);
 }