8151101: Improve UseParallelGC parallelization of object array processing

Reviewed-by: tschatzl, shade
This commit is contained in:
Richard Reingruber 2016-03-03 11:36:25 -08:00 committed by Jon Masamitsu
parent af21a0d3e3
commit 3fcf821982

View file

@ -125,14 +125,14 @@ inline void oop_pc_follow_contents_specialized(objArrayOop obj, int index, ParCo
T* const beg = base + beg_index;
T* const end = base + end_index;
if (end_index < len) {
cm->push_objarray(obj, end_index); // Push the continuation.
}
// Push the non-NULL elements of the next stride on the marking stack.
for (T* e = beg; e < end; e++) {
cm->mark_and_push<T>(e);
}
if (end_index < len) {
cm->push_objarray(obj, end_index); // Push the continuation.
}
}
inline void ParCompactionManager::follow_contents(objArrayOop obj, int index) {