equal
deleted
inserted
replaced
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); |